cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Rank Calculated Column

Hi All, 

 

I'm trying to get a ranking with a calculated column but it is not working for some reason. Any help on it will be greatly appreciated.

 

Thanks. 

 

It is pulling two objects from SalesForce, Account (Name and Region) and Opportunity (signed deals) Object. The calculated column (

Signed Deals = CALCULATE(CALCULATE(COUNTA(Opportunity[StageName]),SEARCH("6",Opportunity[StageName],,0)))is the Signed Deals column which I had summed. I'm trying to rank (
RankCY = RANKX(ALLSELECTED(Account),CALCULATE(SUM(Opportunity[Signed Deals]))))
the signed deals but it's not coming out how I'd imagine to be.
 
 
 
 
 
 
 
 
 
 
 

2021-01-19_17-11-49.png

 
 
 
 
 
 
 

 

 
 
 
 
 
 
 
 

 

 
 
 
 
 
 
 
 
 
 
 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Super User II
Super User II

Hi @powerbiwork 

I would give the below code a try

RANKX(ALLSELECTED(Account),CALCULATE(SUM(Opportunity[Signed Deals])),,,dense)




PBI_SuperUser_Rank@1x.png
Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!👍
Linkedin Profile

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hi @powerbiwork 

I would give the below code a try

RANKX(ALLSELECTED(Account),CALCULATE(SUM(Opportunity[Signed Deals])),,,dense)




PBI_SuperUser_Rank@1x.png
Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!👍
Linkedin Profile

View solution in original post

Works awesome! Thanks so much!

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors