Forum Discussion
KaroRoza
Helper I
6 months agocummulative sum not working
Hi, Could someone help me on Cummulative sum? I have no idea why it is not working. I have two tables: Actuals and DimDate (relation one to many) In the dashboard I have selector DimDate( Year, Mo...
- 6 months ago
That's actually simpler DAX code, you can use the DATESYTD function
Cumm Sum USD = CALCULATE ( SUM ( 'Actuals'[Actual USD] ), DATESYTD ( 'DimDate'[Date] ) )
wardy912
Super User
6 months agoHi KaroRoza
Please give the following a try:
Cumm SUM USD =
CALCULATE(
SUM(Actuals[Actual USD]),
FILTER(
ALLSELECTED('DimDate'[Date]),
'DimDate'[Date] <= MAX('DimDate'[Date])
)
)
The FILTER iterates from the earliest visible date up to the current row date.
--------------------------------
I hope this helps, please give kudos and mark as solved if it does!
Connect with me on LinkedIn.
Subscribe to my YouTube channel for Fabric/Power Platform related content!
Anonymous
6 months agoNot applicable
Hi KaroRoza ,
Thank you wardy912 for the response provided!
Has your issue been resolved? If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
Thank you.