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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cumulative Total to only show certain dates without the running total being impacted

Hi All, 

 

Im a bit stuck on one thing. I have a cumulative total graph with dates on the x-axis that span from 2018 onwards. I only want to show dates from 2020 onwards but i want to cumulative total to calculate from the first date point rather than calculating from 2020 onwards.

I just want my graph to not show dates from 2018 but i want the running total to account for the values from 2018 (if that makes sense).

 

When i use ALL measure, while i can conntrol what dates are shown, the issue becomes that the graph doesn't slice correctly. 

Is there a way i can still use ALLSELECTED (so that the grpah can be sliced properly) to show cumulative total but have it that my x-axis shows dates from jan2020 onwards. Value for Jan2020 should be an accumulation of active/cancelled row count from the min date up to jan 2020 and then cumulation should continue to max date. 

 

 

Please find PBIX and data for more info.


THank you so much in advance.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Try , a measure like 

 

new measure =
var _1 = Cumm Sales = CALCULATE(SUM(Table[value]),filter(allselected(Table),Table[Date] <=max(Table[Date])))
return
if(max(Table[Date]) <= date(2018,1,1) , blank(),_1)

View solution in original post

Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can also try this:

total.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

You can also try this:

total.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try , a measure like 

 

new measure =
var _1 = Cumm Sales = CALCULATE(SUM(Table[value]),filter(allselected(Table),Table[Date] <=max(Table[Date])))
return
if(max(Table[Date]) <= date(2018,1,1) , blank(),_1)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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