Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
arvindyadav
Post Partisan
Post Partisan

How to find rank difference from top account and the normal accounts

Hi Team,

 

I have created a measure for rank position i.e, 

Rank =
RANKX ( ALL ( Table1[Accounts]), [Profit] ).
 
Now I want the difference between the top Account and the normal Accounts. how the rank differs from top position to any other account. .ie,
AccountsProfitRankDifference From top Rank
A403021
B342443
C434810
D108776
E207065
F270254
G369632

 

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

1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

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!  

View solution in original post

9 REPLIES 9
LivioLanzo
Solution Sage
Solution Sage

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 @LivioLanzo ,

 

Thanks. It is quite easy dax formula I did not think about it.

 

 

Hey @LivioLanzo ,

 

Actually, I want a difference in profit.

AccountsProfitRankDifference From top RankDiff in Profit
A4030210
B342443-606
C434810318
D108776-2943
E207065-1960
F270254-1328
G369632-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

2019-03-12_14-32-44.jpg

 

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!  

Hi @LivioLanzo ,

 

I need answer what you have sent in the image.

Hi @LivioLanzo ,

 

Good Afternoon!!!

 

Any Update on this?

 

Thanks,

Arvind

@arvindyadav 

 

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.

Hi @LivioLanzo ,

 

Have you got any solution for it?

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.