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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.