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.
My rank measure works well when only introducing the ranked items, but when I introduce a category for each item (in this example, it's a geographic region) the rank measure returns false ties and skips unused rank numbers. See screenshot below, where the table on the left omits the geograhic location, and the table on the right includes it.
Generically, the rank and ranked measure look like this:
% RANK =
RANKX (
ALLSELECTED ( 'Dimension'[Item] ),
CALCULATE ( [% Measure], ALLEXCEPT ( 'Dimension', 'Dimension'[Item] ) )
)
% Measure =
DIVIDE (
SUM ( 'FACT_1'[COLUMN_1] ),
SUM ( 'FACT_2'[COLUMN_2] ),
BLANK()
)
Am I missing something to control for the additional category added to the visual? My understanding is that this should only come into play if I wanted to rank within each category, but this rank measure is independent of the category.
NOTE: I'm trying to replicate within a dummy dataset to share but have not been successful yet.
Solved! Go to Solution.
Resolved this with the updated measure:
% RANK =
RANKX (
ALL ( 'Dimension' ),
CALCULATE ( [% Measure], ALLEXCEPT ( 'Dimension', 'Dimension'[Item], 'Dimension'[Category]) )
)
Resolved this with the updated measure:
% RANK =
RANKX (
ALL ( 'Dimension' ),
CALCULATE ( [% Measure], ALLEXCEPT ( 'Dimension', 'Dimension'[Item], 'Dimension'[Category]) )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |