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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.