Forum Discussion
Rankx or Topn
- 8 years ago
Hi alexbalazsalex,
Was my above suggestion helpful to you? If yes, would you please kindly mark it as an answer so that it can benefit more users?
Thanks,
Yuliana Gu
Hi alexbalazsalex,
Please try below measures:
Total tons =
CALCULATE (
SUM ( Client_Tons[Tons] ),
ALLEXCEPT ( Client_Tons, Client_Tons[Year month], Client_Tons[Client] )
)
Rankx =
RANKX (
ALLEXCEPT ( Client_Tons, Client_Tons[Year month] ),
Client_Tons[Total tons],
,
DESC,
DENSE
)
Insert a table visual and drag corresponding fields to it. If you want to show TopN records, please add [RANKX] into "visual level filters" and set its value to be equal to or less than N.
Best regards,
Yuliana Gu
Thanks v-yulgu-msft
I will give ti a try and let you know..
meanwhile fi you get a chance could you please have a look at my other thread ? mabe you have an i deea what i could do to make it work ..
https://community.powerbi.com/t5/Desktop/Urgent-Support-for-matrix-table/m-p/369162#M167237
Many many thanks
Alex
- v-yulgu-msft8 years agoMicrosoft Employee
Hi alexbalazsalex,
Was my above suggestion helpful to you? If yes, would you please kindly mark it as an answer so that it can benefit more users?
Thanks,
Yuliana Gu