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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.