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
guil-laume
Frequent Visitor

Calculate cumulation by month

Hi to all,

 

In the foloowing matrix, I would like to add a row with the cumulative sum of the row "Montant HT".

I have no idea of how doing this. Can aynone help me ?

 

Capture d’écran 2022-03-07 à 13.16.39.png

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @guil-laume ,

 

Please refer this common cumulative sum formula.

_cumulative = sumx(filter(allselected('table'),[year]=selectedvalue([year])&&[month]<=max([month])),[Montant HT])

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @guil-laume ,

 

Please refer this common cumulative sum formula.

_cumulative = sumx(filter(allselected('table'),[year]=selectedvalue([year])&&[month]<=max([month])),[Montant HT])

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@guil-laume , depends you need yearly or overall, with help from date table, and use month from date table in visual

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

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.