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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello everybody,
I need your help for a problem. I would like a CUMULATIVE_VALUE in my table. This value is cumulate in fonction of the WEEK and the MONTH.
It's easier to understand with tables :
I have this table :
And I would like this table with the new column :
Thank a lot for the help !
Joc
Solved! Go to Solution.
Hi @joc,
You can use year and month column to create a date column ,then use it as the index to calculate the rolling total.
Sample:
Date = DATEVALUE([Month]&" "&[Year])
Cumulative values:
Rolling Total = CALCULATE(SUM(Sheet4[Value]),FILTER(ALL(Sheet4),[Year]=EARLIER(Sheet4[Year])&&[Week]=EARLIER(Sheet4[Week])&&[Date]<=EARLIER(Sheet4[Date])))
Regards,
XIaoxin Sheng
Hi @joc,
You can use year and month column to create a date column ,then use it as the index to calculate the rolling total.
Sample:
Date = DATEVALUE([Month]&" "&[Year])
Cumulative values:
Rolling Total = CALCULATE(SUM(Sheet4[Value]),FILTER(ALL(Sheet4),[Year]=EARLIER(Sheet4[Year])&&[Week]=EARLIER(Sheet4[Week])&&[Date]<=EARLIER(Sheet4[Date])))
Regards,
XIaoxin Sheng
@Anonymous Perfect ! Thanks !
@joc to create a cummulative value you will either need an index in your table in the correct sequence or alternatively have a separate date table that links to your table
Proud to be a Super User!
Thank you @vanessafvg.
I add a new row "SORT" where JANUARY=1, FEBRUARY=2... but the résult is not good.
CUMULATIVE_VALUE =
VAR sort = 'table'[SORT]
RETURN
CALCULATE (
SUM ( 'table'[VALUE] );
FILTER (
'table';
'table'[SORT] <= SORT
)
)I don't know how take into account the WEEK !
Thank you for the help,
Joc
@joc that doesn't sound right each row must have a unique index
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
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 |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 26 |