This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello,
I'm struggling with a RANKX measure showing the correct rank when filtering.
I have a matrix that is filterd for a specific customer with product type, $, % Chg, and their $ ranking against ALL customers in the selected market for the selected report period.
The Market and Report Period slicers are from reference tables with 1:Many relations to the sales table
The problem I'm having is the rank for the yellow product type is wrong... they are actually 1st overall in that product type.
However if I put the customer name in the matrix and expand the type subtotal, it shows the correct rank (1st) at the customer level, but still 2nd for the product type subtotal
Current DAX Measure:
Hi @bfuller62
Is your problem solved, if so, please mark the corresponding reply as a solution, which will help users with the same problem to better solve their problem.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @bfuller62
from information you gave, looks like the issue is from using ALL function in your RANKX.
RANKX will calculate whole data (with or without getting sliced/filtered) since ALL will count everything in table inside ALL function.
If you want to filtered the result, try using customer table directly without ALL and see if it solves your problem.
Hope this will help you.
Thank you.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |