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
Juanlfg06
Regular Visitor

Last month filter

Hi, i need to do a slicer filter which will be the last month of the current moment and change automatically. 

2 REPLIES 2
Anonymous
Not applicable

You want your questions answered? Please follow these guidelines. Thanks.

amitchandak
Super User
Super User

@Juanlfg06 , You can create a column like this in you date table/ table and use that

 


Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)

 

Try : https://www.youtube.com/watch?v=hfn05preQYA

Helpful resources

Announcements
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.

Top Kudoed Authors