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

Default selection in a slicer equal to current month

Hi everyone,
I have a report with a date slicer that has the month column in it. For reporting reasons the current month must always be selected, by default. As of now I am changing the month in the filter each 1st of the month. For example, tomorrow morning I will change the month selected to May and publish the report in the service again. However, I would like to automate this operation. 

Is there a way to do it? I tried solving it with a calculated column that identifies the current month and then applying this filter to the slicer but in this way I filter out all other months, and they must be available for selection. 

Thanks

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support
3 REPLIES 3
v-kelly-msft
Community Support
Community Support

mitsu
Resolver IV
Resolver IV

Couple of options here . 

 

1> Use the date instead of month . The relative date filter as This month . 

2> What we do is mark the current month with a suffix current on the date dimesion dynamically using SQL . That way on the report you can filter by the month that contains the suffx Current .

 

 

Thanks,

Mitsu

amitchandak
Super User
Super User

@Anonymous ,

You can use relative date slicer

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

Or you can create a column like this in you date table

 

If (format([date],"YYYYMM")=format(today(),"YYYYMM"),"Current Month",format([date],"MM-YYYY"))

 

And use that in filter

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.