Forum Discussion
Running Total by Period
How do I create a measure using DAX to calculate the running total from the second column?
Hello brockry1 ,
Could you try below dax code. But before creating dax code there is a need that a new column includes period such as 01,02 etc. I called PeriodIndex in dax code.Running Total = CALCULATE( SUM('Visits'[Visit Target Per Period]), FILTER( ALL('Visits'), 'Visits'[PeriodIndex] <= MAX('Visits'[PeriodIndex]) ) )Kind Regards,
Gรถkberk Uzuntaล
๐ If this post helps, then please consider Accepting it as a solution and giving Kudos โ it helps other members find answers faster!
๐ Stay Connected:
๐ Medium |
๐บ YouTube |
๐ผ LinkedIn |
๐ท Instagram |
๐ฆ X |
๐ฝ Reddit |
๐ Website |
๐ต TikTok |
1 Reply
- uzuntasgokberk
Super User
Hello brockry1 ,
Could you try below dax code. But before creating dax code there is a need that a new column includes period such as 01,02 etc. I called PeriodIndex in dax code.Running Total = CALCULATE( SUM('Visits'[Visit Target Per Period]), FILTER( ALL('Visits'), 'Visits'[PeriodIndex] <= MAX('Visits'[PeriodIndex]) ) )Kind Regards,
Gรถkberk Uzuntaล
๐ If this post helps, then please consider Accepting it as a solution and giving Kudos โ it helps other members find answers faster!
๐ Stay Connected:
๐ Medium |
๐บ YouTube |
๐ผ LinkedIn |
๐ท Instagram |
๐ฆ X |
๐ฝ Reddit |
๐ Website |
๐ต TikTok |