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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
clmigeon
Frequent Visitor

multi sum with cumulative value

Hi ,

Thank for your help you provid me on a other matter. 


I realise that my problem is more complicat . 
in fact i have : 

NoaccountNojournCreditdevitdatesc
511204050000001/01/2020TOTO
5112016500001/01/2020TOTO
51120160-20001/02/2020TOTO
5112016400001/02/2020TOTO
4520016500001/04/2020TOTO
45200160-20001/02/2020TOTO
4520016400001/01/2020TOTO
45200160-50001/02/2020TOTO
4520016400001/01/2020TATA
45200160-50001/02/2020TATA
511204050000001/01/2020TATA
5112016500001/01/2020TATA


And I want that a repport like 

 

SC Noaccount01/01/202001/02/202001/03/2020
TATA5112050500  
45200400-100 
TOTO511205050050900 
45200400-300200

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @clmigeon ,

 

To what I can see you want the calculation to be cumulative in this case try the following measure:

 

Measure = CALCULATE(SUM('Table'[Credit]) + SUM('Table'[devit]), FILTER(ALL('Table'[date]) , 'Table'[date] <= MAX('Table'[date])))

 

then use a matrix visualization:

MFelix_0-1623153622640.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
clmigeon
Frequent Visitor

Thx @MFelix  ! it work 🙂

could a ask a last advice ? 
I have for each information an other value Nojourn , i need to take the Value 1 time for one id (40) , i need to take the older value. 
For Exemple : 

clmigeon_1-1623165133419.png

 

In 03/10/2020 i need to skip the value in the sum , how could i ? 



clmigeon
Frequent Visitor

hi @MFelix , 
Thank for the help, i don't understand why it doesn't work on me : 

clmigeon_0-1623154244496.png

Measure = CALCULATE(SUM('Feuil1'[Credit]) + SUM('Feuil1'[devit]), FILTER(ALL('Feuil1'[1/1/2020]) , 'Feuil1'[1/1/2020] <= MAX('Feuil1'[1/1/2020])))
 

clmigeon_1-1623154257750.png

 

clmigeon_2-1623154287456.png

Hi @clmigeon ,

 

This is not a calculated column you need to create a measure. Right click on the table but instead of adding a new column add a new measure.

 

Also taking into attention you have a column with transaction that basically is the credit/debit you can redo your measure to:

Measure = CALCULATE(SUM('Feuil1'[Transaction]), FILTER(ALL('Feuil1'[1/1/2020]) , 'Feuil1'[1/1/2020] <= MAX('Feuil1'[1/1/2020])))

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @clmigeon ,

 

To what I can see you want the calculation to be cumulative in this case try the following measure:

 

Measure = CALCULATE(SUM('Table'[Credit]) + SUM('Table'[devit]), FILTER(ALL('Table'[date]) , 'Table'[date] <= MAX('Table'[date])))

 

then use a matrix visualization:

MFelix_0-1623153622640.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors