Forum Discussion

Jay2639's avatar
Jay2639
New Member
2 years ago
Solved

Cumulative sum

Hello experts: I have calculated Cumulative sum using DAX Everything is working fine but if for particular year if we have blank then graph is not showing cumulative sum it’s just showing blank onl...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Jay2639  This works with the data you shared:

    Cumulative Sales =
    CALCULATE (
    SUM ( Sales[Sales] ),
    FILTER ( ALL ( Sales[Year] ), Sales[Year] <= MAX ( Sales[Year] ) )
    )