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!
I have the following dataset with date , amount and another column Spending. The Spending column can potentially have two values Expenditures and Non Expenditures. And I need to obtain cumulative/Running total based on the amount column corresponding to Date column that should display in the month range.
so i need something like below in my table/tablix visualizer from the data above
I have already wrote measures for Expenditures and NonExpenditures
| Date | Expenditures | NonExpenditures |
| June 2021 | 12121212 | 3232323 |
| July 2021 | 23232323 | 23323 |
Solved! Go to Solution.
Hi, @joshig
You need enter the following data table which can also be easily created in excel.
Then try formulas as below:
cumulative amount_Expenditures =
CALCULATE (
AllExpendituresDataFormatted[Expenditures],
FILTER (
AllExpendituresDataFormatted,
AllExpendituresDataFormatted[Date] >= SELECTEDVALUE ( 'Table'[Start Date] )
&& AllExpendituresDataFormatted[Date] <= SELECTEDVALUE ( 'Table'[End Date] )
)
)cumulative amount_NonExpenditures =
CALCULATE (
AllExpendituresDataFormatted[NonExpenditures],
FILTER (
AllExpendituresDataFormatted,
AllExpendituresDataFormatted[Date] >= SELECTEDVALUE ( 'Table'[Start Date] )
&& AllExpendituresDataFormatted[Date] <= SELECTEDVALUE ( 'Table'[End Date] )
)
)
sample result:
Best Regards,
Community Support Team _ Eason
Hi, @joshig
Can you tell me if your problem is solved?
If you still need help, please share more information about it.
Best Regards,
Community Support Team _ Eason
Hi, @joshig
Can you tell me if your problem is solved?
If you still need help, please share more information about it.
Best Regards,
Community Support Team _ Eason
Hi, @joshig
You need enter the following data table which can also be easily created in excel.
Then try formulas as below:
cumulative amount_Expenditures =
CALCULATE (
AllExpendituresDataFormatted[Expenditures],
FILTER (
AllExpendituresDataFormatted,
AllExpendituresDataFormatted[Date] >= SELECTEDVALUE ( 'Table'[Start Date] )
&& AllExpendituresDataFormatted[Date] <= SELECTEDVALUE ( 'Table'[End Date] )
)
)cumulative amount_NonExpenditures =
CALCULATE (
AllExpendituresDataFormatted[NonExpenditures],
FILTER (
AllExpendituresDataFormatted,
AllExpendituresDataFormatted[Date] >= SELECTEDVALUE ( 'Table'[Start Date] )
&& AllExpendituresDataFormatted[Date] <= SELECTEDVALUE ( 'Table'[End Date] )
)
)
sample result:
Best Regards,
Community Support Team _ Eason
This is awesome!! Kudos..
@joshig , to me it seems like YTD with year start in July
Assuming you have measure Expenditures, NonExpenditures with help from date table
YTD Expenditures= CALCULATE([Expenditures],DATESYTD('Date'[Date],"6/30"))
YTD NonExpenditures = CALCULATE([NonExpenditures ],DATESYTD('Date'[Date],"6/30"))
Thanks Amit!! but the issue is how do we get a column that have months as cumulative months and then apply the cumulative amount.
I tried as you suggested but its not rolling up. Am i missing something?
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 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |