Forum Discussion
Vladas
8 years agoFrequent Visitor
How to Rank by created measure
Hi, How I can create a Rank by created measure. Rank Measure = ([Total SUM Qty]*0,7)*(MeasuresDiff[Diff CP - PD]*1,7) . Now I want to create Rank by values. How can i do that? ...
v-cherch-msft
Microsoft Employee
8 years agoHi Vladas
To get the measure as requested, you may try measure as below:
Rank = RANKX(ALLSELLECTED(Table[ItemID]),[Measure])
https://community.powerbi.com/t5/Desktop/Ranking-values-in-a-table-using-RANKX-measure/td-p/391690
Regards,
Cherie
Vladas
8 years agoFrequent Visitor
I tried to create calc colum, not measure = RANKX(ALLSELECTED('Item'[ItemId]);[Rating]) but all rows is blank in this column.
Rating is my calculation = CALCULATE(SUMX(SalesInvoice;SalesInvoice[InvoiceQty]*0,7)*[Diff CP - PD]*1,7)