Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hello,
I am trying to rank locations using RankX function based on quantity for each location. I'm not sure why I'm getting the same rank for multiple locations although the quantity is different.
Can anyone help me on this?
Solved! Go to Solution.
Add the column you are Ranking I couldn't see the name in your picture above.
Rank Measure =
IF (
HASONEVALUE ( FINAL_TBL[Column you are Ranking] ),
RANKX ( ALL ( FINAL_TBL[Column you are Ranking] ), [TOT_QTY] )
)
Hello everyone,
I am trying to rank my table records in order to standard deviation of a column. The following SS shows how is my generic approach is wrtitten to achieve the rankings and I did the same for median values for the same column and it worked without any problem. So, here is how my function looks like:

This returns me 1 as the rank of each record. However when I change STDEV.P to MEDIAN it works pretty well

For more clearance, I am adding indices devided by a big number to prevent having the same rank for same values. That's why you see a sum there.
So, could anyone help me out and explain what is the problem here or how to create a stable ranking function for my tables please?
Thanks in advance,
Cheers!
Can you post the formulas for the RANK Measure and the TOT_QTY?
Add the column you are Ranking I couldn't see the name in your picture above.
Rank Measure =
IF (
HASONEVALUE ( FINAL_TBL[Column you are Ranking] ),
RANKX ( ALL ( FINAL_TBL[Column you are Ranking] ), [TOT_QTY] )
)
Hi Sean,
Thanks a lot..it worked ![]()
Great! ![]()
I added IF ( HASONEVALUE (...) to get rid of the 1 in the Total Row at the bottom of the Visual
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 39 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |