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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Vijay08V
Helper III
Helper III

DAX for Ranking with duplicate values

Hi,

 

I have two tables and I am  trying to replicate a lookup function from an excel report. The first table (AB :AC)  has Weightage with rating. Rating is mapped using a lookup function from the second table (AE:AH) which has the Rating and Ranks. The problem here is since the ranks in second table are duplicated, I am not able to replicate the same function in Power BI.  The excel function for looking up the rating : =IF($AB7=0,"Doesnot",LOOKUP(RANK(AB7,$AB$7:$AB$1048576),$AH$2:$AH$5,$AE$2:$AE$5))

Any help on how to solve this issue ?

 

 

Pic 1.jpgPic 2.jpg

1 REPLY 1
lbendlin
Super User
Super User

To disambiguate rankings you add small, inconsequential random numbers to each value to make them distinct.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.