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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
powerbiwork
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
Anonymous
Not applicable

Hi @powerbiwork 

I would give the below code a try

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @powerbiwork 

I would give the below code a try

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

Works awesome! Thanks so much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.