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

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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

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.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors