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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
vally57
Helper I
Helper I

Rank based on two columns

Hi Experts,

I want to create Rank based on two columns. I have tried for creating Rank on single column, but for it is not working as expected.

https://www.dropbox.com/s/3ec0qxc2avt0t95/Rank.pbix?dl=0
In the attached file, If I have not includd Project ID in the visual, the rank is working fine, but I want to add Project ID and the Rank should consider RiskScore and ProjectID

Thanks in Advance

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @vally57 

Thanks for reaching out to us.

you can try this measure to add project id

project id = MAXX(FILTER(Project,Project[ProjectKey]=MIN('Fact Risk'[ProjectKey])),[Project ID])

vxiaotang_0-1664790990667.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @vally57 

Thanks for reaching out to us.

you can try this measure to add project id

project id = MAXX(FILTER(Project,Project[ProjectKey]=MIN('Fact Risk'[ProjectKey])),[Project ID])

vxiaotang_0-1664790990667.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1664598114043.png

 

 

RISK - Ranking Fix =
RANKX (
    SUMMARIZE (
        ALLSELECTED ( 'Fact Risk' ),
        'Risk'[Risk Name],
        Project[Project ID]
    ),
    [Risk - NetRiskRating]
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@vally57 , Refer my video on the same

Power BI Rank Across dimension tables: https://youtu.be/X59qp5gfQoA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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