cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kandre123
Advocate I
Advocate I

Ranking

Hi all,

 

I am trying to do a combined ranking based on two calculated measures: EBITDA margin and CAGR. where 1 is the combined highest score of both. Problem is that i can't use measures in a RANKX function or at least i do not know how to do it.

 

I'm also struggling with how to evaluate correctly who should be on top. Would a good idea be to make a calculated table,scoring each measure from highest to lowest, and them up and rank them from a virtual table?

1 ACCEPTED SOLUTION

@kandre123 you RANK measure should be either use ALLSELECTED(DimSelskaper[Juridisk selskapsnavn]) because you are using column in the table or you should do ALLSELECTED( DimSelskaper )

 

RankX EBITDA Margin = 
RANKX(
ALLSELECTED(DimSelskaper[Juridisk selskapsnavn]),
CALCULATE([EBITDA Margin]),,
DESC,
Dense
)





Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

6 REPLIES 6
v-yuta-msft
Community Support
Community Support

@kandre123 ,

 

Could you please share some sample data and give the expected result?

 

Regards,

Jimmy Tao

@v-yuta-msft 

this is how i'd like the data to show up. Attached is the pbix file

 

https://www.dropbox.com/sh/cp8p5lwtrrct9pc/AAD5lgcQHhPlB-pySumiTEn1a?dl=0

 

 

Skjermbilde.PNG

@kandre123 you RANK measure should be either use ALLSELECTED(DimSelskaper[Juridisk selskapsnavn]) because you are using column in the table or you should do ALLSELECTED( DimSelskaper )

 

RankX EBITDA Margin = 
RANKX(
ALLSELECTED(DimSelskaper[Juridisk selskapsnavn]),
CALCULATE([EBITDA Margin]),,
DESC,
Dense
)





Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





thanks. That worked out

danextian
Community Champion
Community Champion

Hi @kandre123 

I am not sure how you would want to combine both EBITDA and CAGR. Perhaps you can sum them up in RANKX's expression argument or you can create to separate ranking, sum those ranks and use the sum in another RANKX measure.




Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
www.linkedin.com/in/danebelarminocpa
amitchandak
Super User
Super User

Not sure if This can help. Create 2 rank columns and then either do a sum or Multiple these and use that column as you rank column.



New Power BI Features
Datamarts: https://youtu.be/8tskWsJTEpg
Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin !! Proud to be a Super User!
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors