Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi All,
Struggling to create a measure or calculated column to get the Cumulative Total per Group per week. The report can only display one week at a time. I have a date table containing week number.
Dataset example is below (w/o the CumulativeValue)
Any help would be appreciated.
Solved! Go to Solution.
Hi @Jarrod
If your tables are connected via DateID, first add a new column to the Actuals Table:
Week Number =
RELATED('Date Table'[WeekNumber])
then use this code to add a new column for Cumulative Value:
Cumulative Value =
CALCULATE (
SUM ( 'Actuals Table'[Value] ),
FILTER (
ALLEXCEPT (
'Actuals Table',
'Actuals Table'[Metric],
'Actuals Table'[Week Number]
),
'Actuals Table'[DateID] <= EARLIER ( 'Actuals Table'[DateID] )
)
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @VahidDM,
Thank you for your response. This works perfectly! I have also added in the Year to the Filter section as it was adding up last year values.
Thanks for your help!
Hi @Jarrod
If your tables are connected via DateID, first add a new column to the Actuals Table:
Week Number =
RELATED('Date Table'[WeekNumber])
then use this code to add a new column for Cumulative Value:
Cumulative Value =
CALCULATE (
SUM ( 'Actuals Table'[Value] ),
FILTER (
ALLEXCEPT (
'Actuals Table',
'Actuals Table'[Metric],
'Actuals Table'[Week Number]
),
'Actuals Table'[DateID] <= EARLIER ( 'Actuals Table'[DateID] )
)
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 119 | |
| 117 | |
| 38 | |
| 36 | |
| 29 |