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