March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello
I have a "Cumulative Total" measure. I want to create a table/graph where cumulative amounts are displayed against months
Simply binning the dates does not work. Then only the sum for the specific months are displayed instead of the cumulative amount.
Any tips on how i can show the cumulative total against months?
Cumulative Total =
CALCULATE(SUM(Fact[Amount]),
FILTER(ALL(Fact[Date]),
Fact[Date] <= MAX(Fact[Date])
)
)
Solved! Go to Solution.
Hi @JakobH,
If you are looking for a cumulative total that starts again every year you can try the following:
Cumulative total =
CALCULATE(
SUM( Fact[Amount] ),
DATESYTD( Calendar[Date] )
)
where Calendar is a table containing all your dates.
If I answered your question, please mark my post as a solution.
Best,
Hi @JakobH,
If you are looking for a cumulative total that starts again every year you can try the following:
Cumulative total =
CALCULATE(
SUM( Fact[Amount] ),
DATESYTD( Calendar[Date] )
)
where Calendar is a table containing all your dates.
If I answered your question, please mark my post as a solution.
Best,
Thanks for the reply, but what i wanted to achieve is to get a running total where all entries within a month are summed up.
I found a solution that works, where i create a new column which equals the the binned date group and use this column in my measure:
Cumulative Total =
CALCULATE(SUM(Fact[Amount]),
FILTER(ALL(Fact[BinnedDate]),
Fact[BinnedDate] <= MAX(Fact[BinnedDate])
)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |