cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Cumulative total filter by day

Hi All,

 

I have a table of hourly production table and a line chart.

 

I would like to draw a line chart to show the cumulative total of 'Inc' & 'Act' of the one day with the selection of dates in my slicer.

 

I wrote my measure, but it won't reset after new day.

 

From the image below, on 11/8/2020 8AM the Incremental value should show 85 instead of (85+93 = 178) which is the cumulative total from previous day (10/8/2020 8AM). When it goes to new day, the cumulative should restart. 

 

jenas6423_0-1600760158392.png

 

Here is my measure:

jenas6423_1-1600760287720.png

 

Can anyone please help? Thank you.

 

Regards.

 

Jenas

 

 

 

1 ACCEPTED SOLUTION

@jenas6423 , You are using <= , means take date less than that to

Use =  means only for that day. That will force it reset on the day.

 

if did not work

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
Super User IV
Super User IV

@jenas6423 , if you want to reset on each day then, you need have something like

 

table[Date] = max(Table[Date])

 

or

table[Datetime].date = max(Table[Datetime].date)

or

table[Datetime].date = max(Table[Datetime]).date



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi @amitchandak 

 

I have added date into the filter, but it still doesnt work. Can you advise. Thank you.

jenas6423_1-1600761472548.png

 

 

@jenas6423 , You are using <= , means take date less than that to

Use =  means only for that day. That will force it reset on the day.

 

if did not work

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors