Forum Discussion
Cummulative Sum Starting From Zero Every Year
Hello everyone!
I'm having this issue. In one hand, I have a regular Calendar Table
And in the other hand, I have a table for sales:
The relationship between tables is for the Calendar (Calendario Base[Dia]) and for the Sales (Facturacion[fecha])
I'm using a slicer for the years that I took from Calendario Base[año] and using this formula to determine the cummulative sum:
Please, I need some help!!!!!
- Anonymous4 years ago
Hi Antonio_Gomez ,
Please try this measure.
FacturacionAcumParcial4 = CALCULATE ( SUM ( Facturacion[ImporteBruto] )+0, FILTER ( ALL ( 'Calendario Base' ), 'Calendario Base'[Dia] <= MAX ( 'Calendario Base'[Dia] ) && 'Calendario Base'[año] = SELECTEDVALUE('Calendario Base'[año]) ) )Attached PBIX file for reference.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
2 Replies
- AnonymousNot applicable
Hi Antonio_Gomez ,
Please try this measure.
FacturacionAcumParcial4 = CALCULATE ( SUM ( Facturacion[ImporteBruto] )+0, FILTER ( ALL ( 'Calendario Base' ), 'Calendario Base'[Dia] <= MAX ( 'Calendario Base'[Dia] ) && 'Calendario Base'[año] = SELECTEDVALUE('Calendario Base'[año]) ) )Attached PBIX file for reference.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
- Antonio_Gomez
Resolver I
Thank you very much Anonymous !!!!!!!