Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I'm having some troubles with the following.
I'm calculating a cumulative total going back in time, which is my timeline 0 = today, 1 yesterday and so on.
Thank you in advance for your input.
Solved! Go to Solution.
Hi @Ben_Schenck ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate.
Cumulative SQL1% =
VAR activ_ = SELECTEDVALUE('Table 1'[Activated])
VAR sq_ = SELECTEDVALUE('Table 1'[SQL])
VAR sql_1 = DIVIDE(activ_, sq_)
VAR calcu_ = CALCULATE(
DIVIDE(activ_, sq_),
FILTER(
ALLSELECTED('Table 1'),
'Table 1'[Timeline] <= MAX('Table 1'[Timeline])
))
RETURN
IF(
calcu_ = 0,
BLANK(),
calcu_
)
3.Drag the measure into the Line chart.
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Ben_Schenck ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate.
Cumulative SQL1% =
VAR activ_ = SELECTEDVALUE('Table 1'[Activated])
VAR sq_ = SELECTEDVALUE('Table 1'[SQL])
VAR sql_1 = DIVIDE(activ_, sq_)
VAR calcu_ = CALCULATE(
DIVIDE(activ_, sq_),
FILTER(
ALLSELECTED('Table 1'),
'Table 1'[Timeline] <= MAX('Table 1'[Timeline])
))
RETURN
IF(
calcu_ = 0,
BLANK(),
calcu_
)
3.Drag the measure into the Line chart.
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 52 | |
| 47 | |
| 40 | |
| 38 |