Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217069

Using RANKX to rank Top N aggregate measures

$
0
0

Hi,

 

I have searched relatively hard for this - sorry if it's been covered already - any tips would be helpful.

 

I have a series of 34,000 transaction data for various timesheet entries.  I have been using tables and visual level filters to provide metrics that show the sum that each person has billed year to date.  I have been doing this via a:

 

Inv. = CALCULATE(sum(Transactions[Value]), Transactions[IsInvoiced] = TRUE) as a measure.

 

I would like to show on a graph the top 5 people in the group.  I have tried to understand RANKX but am struggling.

 

I've tried: RANKX(ALLSELECTED(Transactions),Transactions[Inv.]) but all I get are 1's... I then found out that was wrong, so have tried:

 

RANKX(ALLSELECTED(Transactions),CALCULATE(SUM(Transactions[Value]))) ....Esentially trying to cut out the measure part - this results in the same.

 

RANKX(ALL(Transactions),CALCULATE(SUM(Transactions[Value]))) ...shows some form of ranking but mainly random non-sensical numbers.

 

Am on the right track with RANKX - there is a TOPN function but it seems to return tables which doesn't really help me.

 

I don't care that the ranking is in the table visualisation as I want to apply it as a visual filter onto the column graph.

 

Regards,

Warren 


Viewing all articles
Browse latest Browse all 217069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>