How to Use Set Actions to Maintain the Rank of a Dimension Upon Filtering
How to Use Set Actions to Maintain the Rank of a Dimension Upon Filtering:
Example: We take the Sample Super store Data
We Rank the subcategory According to the sales:
Steps:
i) Take sales to Column shelf
ii) Sub-Category to Rows shelf
iii) Sort the sub-category according to sales.
iv) Again take sales to Label.
v) Then change that to Rank.
RANK(SUM([Sales]))
vi) If we take sub-category into filter and shows filter
then it looks like below mentioned image :
vii) On above mentioned Storage rank is 3. On filter
section, if we deselect all and select only Storage on filter, Then Rank
changes or reset to 1.
viii) We fix that using Set Action. Remove the sub-category
to filter section.
ix) Then create a set based on sub-category
x) Create a set based on sub-category with name
“Sub-Category Set “,Select from list only check the machines and then click on
ok.
xi) Then put “Sub-category set” into color. On previous
the Machine Rank is 6. Now the Rank reset to 1.And other are also change their
rank also.
xii) Then put the Sub-Category Set into Rows Shelf. Now the
Machines rank changes into 6.
xiii) Also check the rank function of sales. On drop down go
to edit table calculation check both Sub-Category and In/Out of Sub-Category
Set.
xiv ) Select the out part, Right click and then Hide.
xv) Then Go to Worksheet then click on Actions. Then
Action Page is open.
xvi) Then Click On Add Action and select Change Set Values.
xvii) Then Add action page is open, Change the name into
Update Sub-Category.
xviii) On target Set choose sub-category Set. And also select
add all values to set.
xix) Then Remove the Sub-Category Set into rows shelf. Now
whatever sub-category name select it gives the correct rank.” Art” rank is 14.
If we select Rank it gives the same result.














Comments
Post a Comment