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.
How to rank measure results?
for examle
measure =
VAR sum = SUM([sales])
VAR count = Rankx(sum,sum>=10,,ASC,dense)
RETURN
count
Solved! Go to Solution.
Hi, @Digger
I made a sample for your reference on how to rank measure results.
Please try formulas like below:
Rank =
IF (
Sheet1[sum] >= 10,
RANKX (
FILTER ( ALLSELECTED ( Sheet1[Created] ), Sheet1[sum] >= 10 ),
Sheet1[sum],
,
ASC,
DENSE
),
BLANK ()
)
count = COUNTX(ALLSELECTED(Sheet1[Created]),[Rank])
Best Regards,
Community Support Team _ Eason
Hi, @Digger
I made a sample for your reference on how to rank measure results.
Please try formulas like below:
Rank =
IF (
Sheet1[sum] >= 10,
RANKX (
FILTER ( ALLSELECTED ( Sheet1[Created] ), Sheet1[sum] >= 10 ),
Sheet1[sum],
,
ASC,
DENSE
),
BLANK ()
)
count = COUNTX(ALLSELECTED(Sheet1[Created]),[Rank])
Best Regards,
Community Support Team _ Eason
@Digger , What is needed. This is Wrong usage
refer TOPN -https://youtu.be/QIVEFp-QiOk
Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |