Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CaraJonesReadle
Frequent Visitor

Ranking Multiple columns in a matrix

 

Hello

 

I have a matrix that I am trying to show the top 3 Level 2 downtime areas and then show the top 3 reasons (level 3) for that area. I am using TOP N for the first column, from my research it seems that I should be using RANK for the second column but I am lost as to how I do that.

 

matrix.jpg

 

 I am a very novice user so any help would be greatly appreciated.

 

Thanks

Cara

1 ACCEPTED SOLUTION
14 REPLIES 14
Rfranca
Resolver IV
Resolver IV

hi, 

 

@CaraJonesReadle @Ashish_Mathur

 

I understood what you want
it is not necessary to create the TOP N or RANKX creates the columns and their levels and only classifies the values according to the image.

 

Clipboard01.gif

Ashish_Mathur
Super User
Super User

Hi,

 

What happens when you use Top N for the second column as well?  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

You can only use TOP N on one column, thats really my main issue.

 

Hopefully this works for sharing the file......

 

https://app.powerbi.com/groups/me/dashboards/d8750caa-4718-41f9-8db3-346e5f9df6e7

Hi,

 

I cannot download the file from here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

 

What is the best way yo share the file with you seeing as the link doesn't work? The only other way I know is via e-mail.

Hi,

 

Upload the file to Google Drive or any other such service and share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

You may download my solution file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks so much Ashish this is terrific.

 

Don't suppose you could explain how you managed to create the ranking filter, as I am sure that I will have similar situations occur on other reports I create.

You are welcome.  I created a rank measure using the RANKX formula to assign a rank to each Level3 based on Event duration.  I then dragged that measure to the visual filter section and applied a criteria of <=3.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

HI Ashish

 

Your solution has been working brilliantly, thank-you again.

 

I am wondering though, I now want to have 3 columns each showing the top 3 issues based on duration. I have copied the rank x formula for the 3rd column that I want to add, however now column 2 losses its ranking when i apply this. How can I rectify this issue?

 

Thanks

Cara

You are welcome.  Share the file and tell me exactly what the problem is.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Here is the link

https://drive.google.com/open?id=1Dr-XRSW58BbE5x8iyqFHvbvLXci6ljct

 

In the tab called Overall, you can see a matrix that is showing 3 levels, level 2 and event descirption are only showing the top 3 issues where as the level 3 column shows all. What I am looking for is the Top 3 level 2 events by duration that then break into the top 3 level 3 events and then the top 3 evenet descriptions.

 

 

Thanks so much for your help 🙂

Hi,

 

Someone else will help you with solving this problem.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.