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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
v-agutta
Employee
Employee

Automating the Slicer visual consists of Months of a year to select the current month

Hello everyone,

 

We are using slicer visual where it is having Months of a year. We are supposed to change the Month whenever month changes. We need to automate the process like it should be automatically select the current month whenever there is month change and it should display the current month data.

 

 

Thanks in advance!!!

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @v-agutta ,

We can achieve this requirement by using a workaround. We can create a column which can have same value but get updated in the background based on current Month.

 

Current Month=If(year(column)=year(now())&&month(date)=month(now()),"Current month",Month(date))


You can use this DAX to create a column value "Current Month" and gets updated whenever the month change no need to do any external work.But there is no possibility to get current month name directly to the value and make it selected by default as the month names changes every month.

 

Please refer to the video to see if it helps you.

Set Default Slicer Value to Current Month in Power BI 

 

Or maybe you can vote here. Set date slicers to current date 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @v-agutta ,

We can achieve this requirement by using a workaround. We can create a column which can have same value but get updated in the background based on current Month.

 

Current Month=If(year(column)=year(now())&&month(date)=month(now()),"Current month",Month(date))


You can use this DAX to create a column value "Current Month" and gets updated whenever the month change no need to do any external work.But there is no possibility to get current month name directly to the value and make it selected by default as the month names changes every month.

 

Please refer to the video to see if it helps you.

Set Default Slicer Value to Current Month in Power BI 

 

Or maybe you can vote here. Set date slicers to current date 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mohammedadnant
Impactful Individual
Impactful Individual

Hi @v-agutta 

 

Please refer to these 2 videos, they will help you to get the logic, of how this works

https://youtu.be/wFNzlVl51Zw

https://youtu.be/KAOsHC2zitI

 

 

If this is the answer to your query, please hit the like button. 

Thanks & Regards,

Mohammed Adnan

Learn Power BI: https://www.youtube.com/c/taik18

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.