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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LED_General
Helper I
Helper I

Button Slicer - State disabled

Hi folks,

as of my understanding, the button slicer used with month names has the option of greying out buttons, that don't appear yet (e.g. in my example the months october to december for the year 2025 should be in grey and not clickable). I tried multiple experiments by changing the state of all buttons to disabled, unfortunately it doesn't work. Does somebody know how to solve this?
Thank you!

 

Screenshot 2025-09-25 145933.png

1 ACCEPTED SOLUTION
LED_General
Helper I
Helper I

For fellow travellers out there:

Greyed out categories are now possible in the button slicer since the october Power BI update (Power BI October 2025 Feature Summary | Microsoft Power BI-Blog | Microsoft Power BI).

Therefore I have a solution since today!

Thanks @v-nmadadi-msft @srlabhe and @MasonMA for the contributions!

View solution in original post

15 REPLIES 15
LED_General
Helper I
Helper I

For fellow travellers out there:

Greyed out categories are now possible in the button slicer since the october Power BI update (Power BI October 2025 Feature Summary | Microsoft Power BI-Blog | Microsoft Power BI).

Therefore I have a solution since today!

Thanks @v-nmadadi-msft @srlabhe and @MasonMA for the contributions!

v-nmadadi-msft
Community Support
Community Support

Hi @LED_General ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions  provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @LED_General 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @LED_General 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @LED_General  ,
Thanks for reaching out to the Microsoft fabric community forum.

If you want October–December 2025 to look disabled, the common workaround is to introduce a status column in your date/month table For ex: 

Month

Status

January

1

February

1

September

0

To make future months effectively unclickable, filter your slicer to only include Status= 1. Alternatively, the workaround mentioned by @srlabhe will also do the trick.



I hope this information helps. Please do let us know if you have any further queries.
Thank you

Hello and thanks for your answer!

Unfortunately including the status = 1 effectively makes the future months disappear. They should however appear, but not be clickable.

srlabhe
Helper V
Helper V

Kindly try below altenative workaround for same 🙂
in Power BI, the most effective way to grey out and disable future month buttons in a slicer is to use a filter based on a DAX measure, not by attempting to disable the visual's buttons directly. The standard Button Slicer visual does not have an option to disable specific items. 
Here is the step-by-step method to achieve this effect:
 
Step 1: Create a calendar or date table
First, you need a dedicated date table for your report. If you do not have one, you can create one using DAX. 
 
dax
Date Table = CALENDAR(MIN(YourFactTable[Date]), TODAY())
This formula generates a calendar that goes from the earliest date in your data up to the current date, which automatically excludes all future dates. You can also expand this table with columns for the month and year. 
 
Step 2: Create a measure to identify past and present months
You will need a measure that evaluates whether a month and year are in the past or present. In your date table, add a new calculated column for the month and year, for example, Year_Month_Text. 
 
dax
Year_Month_Text = FORMAT('Date Table'[Date], "yyyy-mm")
Next, create a DAX measure to act as your filter. 
 
dax
IsPastOrCurrentMonth = 
VAR LastMonthInDataset = MAXX(ALL('Date Table'), 'Date Table'[Date])
RETURN
    IF(
        MAX('Date Table'[Date]) <= LastMonthInDataset,
        1,
        0
    )
This measure checks if the month is less than or equal to the last month with data, which effectively prevents selecting future months. 
 
Step 3: Apply the measure to the slicer visual
Use the measure created in the previous step to control what is displayed in the slicer.
  1. Add your Year_Month_Text column to a Slicer visual.
  2. Drag your IsPastOrCurrentMonth measure into the "Filters on this visual" section of the filter pane for that slicer.
  3. Set the filter condition to "is equal to 1" and click "Apply filter." 
 
Step 4: Add conditional formatting for the greyed-out appearance
To achieve the greyed-out appearance, you can use conditional formatting on the button's background and font color.
  1. Create a measure that returns a specific color for future dates. 
 
dax
FutureMonthColor =
    IF(
        MONTH(MAX('Date Table'[Date])) > MONTH(TODAY()) || YEAR(MAX('Date Table'[Date])) > YEAR(TODAY()),
        "#D3D3D3", // Light grey for disabled buttons
        "#FFFFFF"  // White for active buttons
    )
  1. Select your slicer, go to the Format your visual pane, and expand the Buttons section.
  2. For State, choose the "Disabled" state.
  3. For Fill or Font color, select the conditional formatting option (fx) and apply the FutureMonthColor measure. 
This technique uses a DAX filter and conditional formatting to simulate disabled buttons. This will visually indicate which months are selectable and automatically prevent future months from being chosen. 

Thank you very much for your detailed answer! I'm quite sure this workaround could do the trick.
However at the Fabcon 2025 in Vienna an official solution with the button slicer was presented and I am trying to achieve that.

Can you share the slide used at Fabcon that shows this feature?

I found it!

 

It looks like this:

 

Screenshot 2025-10-15 082822.png

Hi @LED_General ,


You have mentioned the button slicer used with month names has the option of greying out buttons, but the image you have shared doesnt contain months name but instead has categories, can you kindly recheck the slide.

I have also checked power BI previous month updates and I could not find anything related to the feature you are talking about
See what's new with the latest Power BI update - Power BI | Microsoft Learn
Previous monthly updates to Power BI Desktop and the Power BI service - Power BI | Microsoft Learn

 

If the feature in discussion is important for your functionality Please consider sharing your suggestion in the Power BI Ideas forum

Fabric Ideas - Microsoft Fabric Community

where the product team actively monitors user feedback. Ideas with strong community support are more likely to be considered for future implementation. Posting there helps ensure your request reaches the right audience and contributes to shaping the product roadmap.

 

Thank you

Hello @v-nmadadi-msft 

thanks for your quick reply!

In the FabCon example the categories act as a slicer, where one can choose between Historical and Market for a specific city, as the other categories do not appear for that city. If a different city is selected, the greyed out categories might be clickable. So translated to my case: the category becomes month and the city becomes year.
Thank you for checking the previous updates, I as well couldn't find anything.

Meanwhile my assumption is that this is a feature which might be released in the october update.

Hi @LED_General ,
Thank you for the update. I think, for now, the best approach is to keep an eye on the upcoming October release or as mentioned if the feature is important you can raise a post in the ideas forum.

Thank you

I'll see if I can find it somewhere.

MasonMA
Community Champion
Community Champion

Hi,


In my understanding Slicer is simply showing values based on what’s in the field you drop in. I've not seen a property for 'disable if no data' like you might see in some custom visuals.

 

In your situation, i'd just use a Measure to restrict what's to be shown in the slicer based on if there's data in your fact table, set to 1 on visual-level filter for this Slicer. 

INT(
    NOT(
    ISEMPTY('Table'))
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors