Forum Discussion
EnderWiggin
5 years agoHelper I
Running total calculation without filter?
Hi All, I created a running total calculation which counts from a start balance. The start balance contains the actual stock quantity, stock input output quantity before the actual month + actual mo...
- 5 years ago
OK I think I found it, add "<" to this measure
Looking good!
aj1973
5 years agoCommunity Champion
- EnderWiggin5 years agoHelper I
Hey aj1973 ,
thank you for your fast reply! I tried it, but the running total calculation does not work on this way (as it can be seen on the picture you shared)
m_StockIORunningTotal1 = var StockIODiff = [m_StockIODiffForRunningTotal] var RT = CALCULATE( StockIODiff, FILTER( ALLSELECTED('Calendar'[0BeforeActualYearMonth]), 'Calendar'[0BeforeActualYearMonth] >= [m_ActualMonth] && 'Calendar'[0BeforeActualYearMonth] <= max('Calendar'[0BeforeActualYearMonth])) ) return RT- aj19735 years agoCommunity Champion
Your exact measure is working for me
here is the file
https://drive.google.com/file/d/1a1tcHD3KlIr6UBf32c5BizA1qYttDMCO/view?usp=sharing
- EnderWiggin5 years agoHelper I
I downloaded the file and checked again but unfortunately your solution (in m_StockIORunningTotal) provides same result as the m_StockIODiffForRunningTotal which counts the start balance for running total. The 3rd visualization shows the running total correctly but the 0BeforeActual column is missing:
Please see the details in this RunningTotalDemoWithCalendar1_aj1973
file.