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.
Hi Team,
I have to below table structure.
Plaform Tier Sales Rank Required rank
B BB 2178 1 1
I BB 2207 2 2
H CC 2258 3 3
A AA 2362 4 4
F LL 2416 5 5
D LL 2530 5 6
E LL 2782 5 7
C AA 2840 6 8
J DD 2907 6 9
G AA 3002 7 10
I have written a measure like this
RANKX(ALLSELECTED('platform view'[platform]),CALCULATE(SUM('platform view'[sales])))
It is returning the correct result on Plarform level but when I pull Tier, ranking is wrong. Tier is coming from same table as platform.
Please guide me. what should I do so that when I pull tier in visual then ranking shouldn't get disturbed?
Solved! Go to Solution.
Hi @Anonymous ,
First of all, many thanks to @bhanu_gautam for your very quick and effective replies.
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to rank based on platform.
PlatformRank =
RANKX(
ALL('platform view'[Plaform]),
CALCULATE(
SUM('platform view'[Sales]),
ALLEXCEPT('platform view', 'platform view'[Plaform])
), ,ASC
)
3.Drag the new measure into the table visual.
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
First of all, many thanks to @bhanu_gautam for your very quick and effective replies.
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to rank based on platform.
PlatformRank =
RANKX(
ALL('platform view'[Plaform]),
CALCULATE(
SUM('platform view'[Sales]),
ALLEXCEPT('platform view', 'platform view'[Plaform])
), ,ASC
)
3.Drag the new measure into the table visual.
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@bhanu_gautam Thank you for reply but this way it isn't working I have tried using it already
@Anonymous ,
You need to modify your measure to include the Tier column in the RANKX function.
RANKX(ALLSELECTED('platform view'[platform], 'platform view'[Tier]), CALCULATE(SUM('platform view'[sales])))
Proud to be a Super User! |
|
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 |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |