cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joshua1990
Post Prodigy
Post Prodigy

Rank based on two individual measures

Hi all!

I have a dimension table that contains all articles and then I have a transactional table. This transactional tables contains two value columns. I use a simple SUM function to get this numbers (Value 1 and Value 2) for a matrix visual:

ArticleValue 1Value 2Rank ValueRank
150%5%5,53
280%10%10,82
360%11%11,61

 

Now, I would like to build a ranking based on this two measures.

For that, I build a third measure with this logic:

 

 

([Value 2] * 100) + [Value 1]

 

 

 

To get the ranking here I created this function:

 

 

RANKX (ALLSELECTED(Article[Article]), [Ranking Value])

 

 

But this results always in a 1. 

The result that I need you can find in the last column.

Why is this function showing always 1?

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

In what context did your measure return 1? I tried to re-create the issue, but the values I gor are like your desired values:

ValtteriN_0-1643184809918.png

 





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ValtteriN
Super User
Super User

Hi,

In what context did your measure return 1? I tried to re-create the issue, but the values I gor are like your desired values:

ValtteriN_0-1643184809918.png

 





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

Proud to be a Super User!




@ValtteriN : Thanks a lot for your support. Do you have a datamodel with 2 tables or is it just one?

@joshua1990  My test data is just one table





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

Proud to be a Super User!




Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

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.