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
Greig_Dunbar
New Member

Date Value that Refers to all Previous Dates in Chart

 

Hello, hoping someone can help. 

 

I am looking to create a function that allows the month value displayed on a table to actually refer to all data on or before the month displayed. This is in order to simulate point in time compliance figures. 

 

Compliance Graph.PNG

For example, May 2021 would actually show all data from the end of May 2021 backwards. January 2021 would similarly show from the end of January 2021 backwards.

 

Hope this helps explain my issues 🙂

 

Thanks

1 REPLY 1
amitchandak
Super User
Super User

@Greig_Dunbar , are you looking for cumulative?

 

example

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

 

Cumm Sales till month back= CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=eomonth(max(date[Date]),-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.

Top Solution Authors