Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Team,
I have created a measure for rank position i.e,
Accounts | Profit | Rank | Difference From top Rank |
A | 4030 | 2 | 1 |
B | 3424 | 4 | 3 |
C | 4348 | 1 | 0 |
D | 1087 | 7 | 6 |
E | 2070 | 6 | 5 |
F | 2702 | 5 | 4 |
G | 3696 | 3 | 2 |
So basically I want new column as the difference from top Rank in power bi So How to do that please help me out.
Thanks,
Arvind
Solved! Go to Solution.
Hi @arvindyadav
can't you just do the result of your RANKX and subtract one?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hi @arvindyadav
can't you just do the result of your RANKX and subtract one?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hey @LivioLanzo ,
Actually, I want a difference in profit.
Accounts | Profit | Rank | Difference From top Rank | Diff in Profit |
A | 4030 | 2 | 1 | 0 |
B | 3424 | 4 | 3 | -606 |
C | 4348 | 1 | 0 | 318 |
D | 1087 | 7 | 6 | -2943 |
E | 2070 | 6 | 5 | -1960 |
F | 2702 | 5 | 4 | -1328 |
G | 3696 | 3 | 2 | -334 |
That actually means if I click on any account in the slicer it will reflect my difference of that account with the top account.
Thanks,
Arvind
Hi @arvindyadav - should not the results be as per my image above?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
try:
Measure = var max_profit = MAXX( ALL( Data[Accounts] ), CALCULATE( SUM( Data[Profit] ) ) ) return SUM( Data[Profit] ) - max_profit
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
sorry,
yup, I need to answer what you have mentioned in that image.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |