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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Chthonian
Helper III
Helper III

Cumulative Points based on Rank of Sales Amount

Hello folks, 

 

I have what i hope is a nice simple question, that I am probably over thinking and getting confused with. Hoping somebody out there can help.......actually I am sure somebody here can help 😄.

 

Scenario/Request: Create a Sales Leaderboard for our sales people, the based on Rank (1-10) assign a points value to each ranked salesperson. The have a running cumulative total of the points won each month. And at the end of the year the person with the most points wins a free holiday 🏝.

 

My Setup: Nice & Simple, Date Table connected to Sales Date("Orderlines Date"), Sales Table connected to Sales Person Table("Agent Contacts"). With a disconnected lookup table with Rank & Points. 

tables.png

 

 

 

 

Measure 1: Top 10 = CALCULATE( [Total Sales], TOPN(10, 'Agent Contacts', [Total Sales], DESC))

Measure 2: Ranking = RANKX(ALL('Agent Contacts'), [Total Sales], ,DESC)

Measure 3: Points = CALCULATE(VALUE(LOOKUPVALUE('Ranking Values'[Points],'Ranking Values'[Rank],[Ranking])))

 

This works a treat when using a slicer to work out each months sales leaderboard as per the below, but not for the life of me can I get my head around building the Dax to run a cumulative total on points.

leaderboard.png

 

End result I am looking to achieve would be a table or visual calulating the total points won each month by a sales person and obviously ranking them. 

 

NameMonthPoints
John Jan15
JohnFeb4
JohnMar12
John Total31

 

I have been hunting for a solution and gotten bogged down and confused with summarize and table variables and group by (all a bit above my current proficiency!😥) so I thought I would seek help from the people in the know!

 

Thanks in advance guys for any guidance or tips!

David

2 REPLIES 2
Chthonian
Helper III
Helper III

Small bump to see if anybody out there may have a suggestion 😏

Hi all, 

 

I just wanted to close this down saying that I found a way to calculate this using SUMMARIZE to create a table with each month as a dimension that then allowed me to SUM & RANK and TOPN the Results.

 

Cheers

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.