Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
samc_26
Helper IV
Helper IV

Cumulative totals running simultaneously on a monthly chart

Hi all,

 

I've got three tables which all have daily dates with a value against them, I've also got a date table which has Month, Year, Month/Year etc. I've created three measures for these three tables to cumulatively sum the totals monthly which works fine when I use the below code but this doesn't allow my charts to look the way I want.

 

Cumulative sum of 24-25 =
CALCULATE(SUM('Historic_records 2024/25'[Sales 24/25]),
FILTER(ALL(Date_today), Date_today[Date]<=MAX(Date_today[Date])))

 

This is a basic representation of what I need the figures to do:

 

samc_26_1-1742382742148.png

 

I've managed to produce this which shows the correct totals by changing the column references to Month instead of Date as shown in the formula below but it's sorting and adding the data by months alphabetically for the cumulative calculation which is no use to me. I need the data to run in month order (UK April to March which I have in my date table). 

 

samc_26_0-1742382479931.png

Cumulative sum of 24-25 v2 =
CALCULATE(
    SUM('Historic_records 2024/25'[Sales 24/25]),
    FILTER(
     ALL(Date_today), Date_today[Month/year]
     <=MAX(Date_today[Month/year])))
 
Can anyone advise how I tweak this so it works as I need and I can then plot all the values on a line graph please? Thank you for reading!
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@samc_26 , Try using Fiscal month

DAX
Cumulative sum of 24-25 v3 =
CALCULATE(
SUM('Historic_records 2024/25'[Sales 24/25]),
FILTER(
ALL(Date_today),
Date_today[FiscalMonthNumber] <= MAX(Date_today[FiscalMonthNumber])
&& Date_today[Year] = MAX(Date_today[Year])
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@samc_26 , Try using Fiscal month

DAX
Cumulative sum of 24-25 v3 =
CALCULATE(
SUM('Historic_records 2024/25'[Sales 24/25]),
FILTER(
ALL(Date_today),
Date_today[FiscalMonthNumber] <= MAX(Date_today[FiscalMonthNumber])
&& Date_today[Year] = MAX(Date_today[Year])
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






That was a lot more simple than I thought it was going to be 😁 Thank you very much, I should have tried that just didn't think! 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.