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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
desiiirz
Regular Visitor

Cumulative Sales

Hello,

 

I want a new column that calculate the cumulative sales A.K.A (nombre de rdv créés) 

 

I come up with the formula below but it calculate me the cumulative sales for each S01, S02, S03 ect...

EFCEZFZEFFEZ.PNG

My ideal result looks like this : 

 

Column A                

Line 1 : 20                

Line 2 :  50

Line 3 : 10

 

Column running total : 

Line 1 : 20                

Line 2 :  70

Line 3 : 80

 

and so on

6 REPLIES 6
Anonymous
Not applicable

Hi @desiiirz 

You can add an index column in power query

vxinruzhumsft_0-1675129191362.png

Then create a new column in table.

Running toal = CALCULATE(SUM(RegN[Nombre de ]),FILTER(RegN,[Index]<=EARLIER(RegN[Index])))

Output

vxinruzhumsft_1-1675129360162.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

FreemanZ
Super User
Super User

hi @desiiirz 

do you have other columns with unique value on each row?

@FreemanZ  hi, 

 

there is no unique value beside "nombre de rdv créées" where there is a lot of 0 value.

Right now, it calcule the cumulative sales for each S01 then S02 ect...

hi @desiiirz 

could you paste your data as text?

@FreemanZ Yes, column/mois is already in text 

hi @desiiirz 

i mean to paste your sample data as text, so we could copy to Excel/PBI to get the solution for you, instead a screenshot. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.