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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AlexGallet01
Helper IV
Helper IV

Cumulative sum by dates

Hello,

 

I have a problem. When i try calculate a cumulative sum on two fiscale year, i have jsut one cumulative sum for one year.

 

The formula for the cumulative sum is :

 

Montant HT Cumulé test = CALCULATE(TOTALYTD(sum(Factures[Montant €]);'Date'[Date];"30/06"))

 

Sans titre.png 

2 REPLIES 2
Interkoubess
Solution Sage
Solution Sage

Hi @AlexGallet01,

 

Formulae with YTD are based on a yearly calculation, that means it takes only calculation on a yearly basis.

If you want a cumulative sum then you might use another approach.

 

Could you please share dummy data with your expected results and we will give it a try?

 

Ninter

Hello,

 

Sorry i don't have test data bases. If i do undestand you think i must use another function for do this cumulative sum. 

 

It's possible to have many different result with SELECTEDVALUE ?

 

CALCULATE(sum(Factures[Montant €]);Date[AnnéeFiscale] = SELECTEDVALUE[anneechoisi])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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