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

A quarterly cumulative shows me the following months

I used the DAX formula to accumulate sales for the last three months but I complete the figures for the next 2 months and do not want to see them. I tried Filter but I can't get him to delete me for the next few months (the 6th and 7th)

The formula I use is

_MEDIA MOBILE TRIMESTRE - CALCULATE('_TB MEASURES'[_TOTAL SALE Current Year],
DATESINPERIOD('MY CALENDAR'[Date],
LASTDATE('MY CALENDAR'[Date]),-3,MONTH))
And it shows me
Captura.GIF

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi,

 

you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive for business and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

Community Support Team _ Dina Ye
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 adding a filter like

_MEDIA MOBILE TRIMESTRE - CALCULATE('_TB MEASURES'[_TOTAL SALE Current Year],
DATESINPERIOD('MY CALENDAR'[Date],
LASTDATE('MY CALENDAR'[Date]),-3,MONTH) , 'MY CALENDAR'[Date] <=eomonth(today(),-2)+1)

 

eomonth(today(),-2)

-2 can be -3 or -1 depend on need

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.