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
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
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.