Showing results for 
Search instead for 
Did you mean: 
Vladas Frequent Visitor
Frequent Visitor

How to Rank by created measure



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? 




Moscuba Member

Re: How to Rank by created measure

First, your naming is very confusing because what you created is a Measure that creates some vvalue. It is not a Rank. If you want to Rank that value I think you need to make that value a column and not a Measure. I may be incorrect in that. 

v-cherch-msft Super Contributor
Super Contributor

Re: How to Rank by created measure

Hi @Vladas


To get the measure as requested, you may try measure as below:

Rank = RANKX(ALLSELLECTED(Table[ItemID]),[Measure])




Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vladas Frequent Visitor
Frequent Visitor

Re: How to Rank by created measure

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)

popov Member

Re: How to Rank by created measure

Hello, @Vladas
Formula of Rank measure looks correct. Wich column do you use in matrix? Item[ItemId] or SalesInvoice[ItemId]?

Helpful resources

Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 367 members 3,817 guests
Please welcome our newest community members: