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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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