Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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]) )
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |