Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric certified for FREE! Don't miss your chance! Learn more
I have a table Containing columns like
CustomerID, DeliveryStatus DateRegistered etc....
1-123 Late 2010-01-01
1-123 OK 2014-01-01
1-123 Late 2015-01-01
20-2021 Late 2011-12-01
What I want to do is create a messure for rank Customer based on existens of late delivery (IE count of rows with late delivery)
I Tried something like
Solved! Go to Solution.
hi @Anonymous
Just adjust the formula as below:
Rank = RANKX(ALLSELECTED('Table'[CustomerID]),CALCULATE(COUNT('Table'[DeliveryStatus]),'Table'[DeliveryStatus]="Late"))
Result:
Regards,
Lin
hi @Anonymous
Just adjust the formula as below:
Rank = RANKX(ALLSELECTED('Table'[CustomerID]),CALCULATE(COUNT('Table'[DeliveryStatus]),'Table'[DeliveryStatus]="Late"))
Result:
Regards,
Lin
I can't get it to work:
And
I get this:
hi, @Anonymous
For rankx funtion, it usually involves row context in the visual.
If possible, please share a simple sample pbix file for us have a test, that will be great help.
Regards,
Lin
I see. It works correct as long as I don't add the "Customer Name" that is in another table (that links on the customer id)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 47 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 103 | |
| 37 | |
| 27 | |
| 26 |