Forum Discussion
RANKX using a measure
- 5 years ago
I got it to work. My problem was that I was using the transaction table as the 'main' table, but since I want ranking per store, I should use the store table.
Rank Sales Per Store = rankx(ALL(ITK_Retail_AM_OMOperatingUnitEntity), ITK_Retail_AM_ITKRetailTransactionsView[Total Sales Per Store])
Hi,
Do you want the total sale of the Top 5 items per store? Share some data and show the expected result.
Basically I want the top 5 of the total sales per store. So I first need to get total sales per store, which I've done by creating the 1st measure, then I want to take the top 5 of that measure, which I tried with the second measure.
Added complexity is that this *has* to be done using direct query only.
Date looks like this:
- Ashish_Mathur5 years agoSuper User
Hi,
We should be able to write a measure to do this but i am still not very clear of your expected result. Share some data (say 50 rows) and show your exact expected result.