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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |