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
kivancc94
Helper I
Helper I

Filter Detecting and Selecting Current Month by itself

Hi,

I would be appreciated if you could help me to solve this issue. 

What I would like to achieve is "Year and month filter needed to be automatically realize current year and month, and will select year or month filter by itself. We are not gonna select any month. Program must understand today's month and click filter." 

As I know there is no way insert measure into filter.

kivancc94_0-1701672416621.png


Is there any way of measure or smt to implement that ?

Thanks in advance. 
Regards

 

1 REPLY 1
amitchandak
Super User
Super User

@kivancc94 , As of now, we can not default based on a measure. You have use a work around

 

 

Create a column and save that on This month in slicer

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

 

 

Default Date Today/ This Month / This Year: 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.