Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
I want to show normal cumulative within line chart.
My Axis has to be 3 years hence I use this :
MonthYear Retention breakdown = FORMAT(Terminations[Date of Renewals],"mmm")&"-"&FORMAT(Terminations[Date of Renewals],"YY")
My Current value is Measure :
Retention = CALCULATE(COUNTROWS(Terminations),FILTER('Terminations','Terminations'[Renewals?]="Renewals"))
Can you help with DAX formula for simple cumulative where I can visual in my chart?
This is current layout :
Many thanks.
Kind regards.
Andrej
Solved! Go to Solution.
Of course... 🙂
You just need to also include the column you are sorting by in ALL. Like so:
Retention Cumulative =
CALCULATE (
[Retention],
FILTER (
ALL (
Terminations[Date of Renewals],
Terminations[MonthYear Retention breakdown],
Terminations[SORT COLUMN OF MonthYear Retention breakdown]
),
Terminations[Date of Renewals] <= MAX ( Terminations[Date of Renewals] )
)
)Does this make sense?
Try this:
Retention Cumulative =
CALCULATE (
[Retention],
FILTER (
ALL (
Terminations[Date of Renewals],
Terminations[MonthYear Retention breakdown]
),
Terminations[Date of Renewals] <= MAX ( Terminations[Date of Renewals] )
)
)
Hello @Daniil,
Thank you for trying to help.
Unfortunately it didn't work.
Outcome is exactly the same.
Kind regards.
Andrej
Of course... 🙂
You just need to also include the column you are sorting by in ALL. Like so:
Retention Cumulative =
CALCULATE (
[Retention],
FILTER (
ALL (
Terminations[Date of Renewals],
Terminations[MonthYear Retention breakdown],
Terminations[SORT COLUMN OF MonthYear Retention breakdown]
),
Terminations[Date of Renewals] <= MAX ( Terminations[Date of Renewals] )
)
)Does this make sense?
Hello @Daniil,
Your solution worked fine for me.
I am now doing something similliar but instead of months I am calculating cumulatives this based on diffrence of two months [Completion_Vs_Contract] this is as well in my axis however I have there some gaps and cumulative might go down in gap months.
For example my monhts are -12 -11 -10 -9 -8 -3 -2 -1 0 1 2 3
Is there way of taking this gaps into conisderation?
Vintage Cumulative =
CALCULATE (
[Settlements],
FILTER (
ALL (
Terminations[Completion_Vs_Contract]
),
Terminations[Completion_Vs_Contract] <= MAX ( Terminations[Completion_Vs_Contract] )
)
)
Many thanks.
Andrej
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |