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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bmarinov96
Regular Visitor

Cumulative Chart with Single Day Selection

I am running into some problems with a DAX related, cumulative sum measure. 
Basically I am trying to create a plot which will show a running cumulative total for a selected date range. I currently have it working, as shown in the picture below, where when a user selects multiple days, the chart displays the totals for that date selection. I have removed the name of the Sales table due to privacy concerns, but you can assume its basically "SaleTable", where the sale information is stored.
image.png

As you can see in the screenshot, selecting multiple days does the trick. However, ideally Id like to get the same behaviour when selecting a single day from the hierarchical slicer. So if a user just picks the 24th, and no days before that, you would still get the same visual. 
Even more ideally, Id like to be able to show the entire month, with dates after the selected date being blank. So selecting the 24th wont limit the chart to the 24th day, but will show the rest of the days pup until the 31st as blank.
Would really appreciate any help on this!
I feel like a solution might be to use a disjoined copy of the date table, and base it off that. 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

SQLBI have a video which I think matches what you are after - https://www.youtube.com/watch?v=d8Rm7dwM6gc 

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

SQLBI have a video which I think matches what you are after - https://www.youtube.com/watch?v=d8Rm7dwM6gc 

Thank you so much! That definitely took me in the right direction. Really appreciate your help!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.