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
bilingual
Helper V
Helper V

PowerBI - two columns with from and to adress - find the highest ranked in both?

Hi, i have a data sheet where from adress and to adresse are in each separate column, the third column contains the number of records - how can i be able rank the adress  based on number of records? - i want to find Top 10 of the adress which has the most number of records.

 

YearFrom AdressTo AdressNumber of records
    
    
1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @bilingual ,

I created a sample pbix file (see the attachment), please check if that is what you want. You can create a measure as below to get the rank and apply the visual-level filter on the visual with the condition (Rank is less than or equal to 10😞

Rank = 
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( SUM ( 'Table'[Number of records] ) ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1677809809244.png

If the above one can't help you, please provide some raw data in your table (exclude sensitive data) with Text format, your visual Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yiruan-msft
Community Support
Community Support

Hi @bilingual ,

I created a sample pbix file (see the attachment), please check if that is what you want. You can create a measure as below to get the rank and apply the visual-level filter on the visual with the condition (Rank is less than or equal to 10😞

Rank = 
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( SUM ( 'Table'[Number of records] ) ),
    ,
    DESC,
    DENSE
)

yingyinr_0-1677809809244.png

If the above one can't help you, please provide some raw data in your table (exclude sensitive data) with Text format, your visual Fields settings and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.