cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Ranking data in different ways

I am trying to rank locations by their value, ignoring if a user selects a specific location.

There are many locations and some can be in more than one category. 


I will be displaying the ranking in two ways:

1. A table of all locations showing their rank.

2. A card, showing just the rank of a particular location.

 

Each time i try to crate a ranking measure for the table, it somehow does a cross join between hte location and category.

 

Would appreciate some pointers on how to tackle this. I have placed a sample pbix file with a small amount of data at this link to demonstrate the situation and issue. 

 

https://1drv.ms/u/s!AgldA0VQfPV9gfwiA4Jmtz2msy8Ffg

 

Appreciate any help or pointers!

1 ACCEPTED SOLUTION

Accepted Solutions
pawel1 Member
Member

Re: Ranking data in different ways

not sure if this helps, but what about a calculated column like this:

Rank Sales = RANKX(Location,[Sum of Value],,DESC)

rankx.JPG

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
pawel1 Member
Member

Re: Ranking data in different ways

not sure if this helps, but what about a calculated column like this:

Rank Sales = RANKX(Location,[Sum of Value],,DESC)

rankx.JPG

 

 

 

 

 

 

View solution in original post

Microsoft v-ljerr-msft
Microsoft

Re: Ranking data in different ways

Hi @wilson_smyth,

 

Have you tried the solution provided by @pawel1 above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors