Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm using RANKX to rank the number of "Monthly Lines" based on a column called "Parent and TC City".
The above rank work fine.
If I add the field "Parent Org" to the table, then the ranking is incorrect:
My measure for rank is:
Solved! Go to Solution.
Would something like this help?
Rank TC Parent City 2 =
RANKX(
ALL( 'Table'[Parent and TC City], 'Table'[Parent Org] ),
[Monthly Lines]
)
It seems to work in both of your scenarios.
Let me know how this works.
pbix: Rankx Problem.pbix
If you are using a Matrix Visual, this video would help:
https://www.youtube.com/watch?v=y2FFjfRD-Bo
IF you are using a Table Visual, this video would help:
It is because when you are including Parent Org, the context is getting changed. To avoid the context change you can use a table in your Rank Dax by cross joining the 'Parent and TC City' and 'Parent Org'. I have verified it and it gives the correct result.
My Dax looks like
Would something like this help?
Rank TC Parent City 2 =
RANKX(
ALL( 'Table'[Parent and TC City], 'Table'[Parent Org] ),
[Monthly Lines]
)
It seems to work in both of your scenarios.
Let me know how this works.
pbix: Rankx Problem.pbix
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
I posted the link to the Power BI that shows the problem - Thanks
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
101 | |
66 | |
48 | |
39 | |
34 |
User | Count |
---|---|
166 | |
112 | |
60 | |
56 | |
37 |