Wednesday 2 December 2015

Calculating Ranks in Tableau

Create a parameter like below.
43.png
create a calculation, drop it on "Text Labels"
56.png

Right click on parameter, then click on "Show Parameter Control".

Drag "Measure Selection" field twice onto Columns shelf, State on to rows shelf.
47.png
Then Right click on first Measure Selection Column (Rank) then click on "Discrete", Change ir from Column shelf to Row shelf.
48.png


Then applying the Sorting
49.png

Then Copy the Rank Column into "Filter Shelf". ( I am using laptop so how i am doing here is CTRL+ALT+Right click on Mouse + dragging into Filters shelf.)50.png

Then Apply the Filter on Ranking51.png

If you want to hide the Ranks, right click on rank field, click on "Show Header".
52.png

=====

I have added normal report, top 5 City report to the Dashboard to come to know how our calculation will work.
Measure

53.png

54.png



55.png

No comments:

Post a Comment