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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
aghnamahardhika
Frequent Visitor

Filter Slicer based on value on another slicer seems not work on me (a bug?)

Hello Power BI community,

 

So here is the situation,

aghnamahardhika_0-1720751607800.png

I wanted to filter the date so that if I choose either "MTD" or "YTD", the date filter will be turned off. Only when I select "Period" will the date filter can be used.

 

I followed some YouTube tutorials like:

aghnamahardhika_0-1720752902779.png

 

or 

aghnamahardhika_1-1720752934435.png

 

and they provide a quite straightforward way to do it.

 

 

 

So, what I did is I created a measure as follow:

 

CustomDateDisable = INT(SELECTEDVALUE('MTD or YTD'[MTDORYTDORPERIOD])="Period")
 
The measure seemed to work well for me. Proved by the value of the CustomDateDisable card:
 
aghnamahardhika_1-1720751991208.pngaghnamahardhika_2-1720752007421.png

The problem came when I tried to put the CustomDatefilter measure on Date filter. The date filter seems to ignored the MTDORYTDORPERIOD value and only depends on how I choose the value on the CustomDateDisable pane.

aghnamahardhika_3-1720752304327.pngaghnamahardhika_4-1720752331407.pngaghnamahardhika_5-1720752376897.pngaghnamahardhika_6-1720752406433.png

 

I really appreciate if there is someone to correct my logic or the implementation to this case.

 

Thank you in advance.

 

[UPDATE]

 

Hey Power BI community,

 

I update the case for an important context.

It seems that I encountered some type of bug.

 

aghnamahardhika_0-1720771962724.png

When I changed the field to something other than Date, the filter worked perfectly to disabled the slicers.

 

Also, the filter still worked fine when I changed the field to date, but the style I choose was vertical list or tile

aghnamahardhika_0-1720772322008.png

 

Only when I change the style to between, before, after, dropdown, relative date, or relative time, that the filter start to not working.

 

Hopefully anyone on this forum can notice.

 

Thank you in advance.

 

2 REPLIES 2
Anonymous
Not applicable

Hi @aghnamahardhika ,

In order to get a better understanding on your problem and make further troubleshooting, could you please provide the following info?

  • Are the field [MTDORYTDORPERIOD] and [Date] in the same table?
  • The field [MTDORYTDORPERIOD] is a calculated column or fact field of the table?
  • Could you please provide your sample pbix file? 

Best Regards

Dear @Anonymous ,

 

1. The field [MTDORYTDORPERIOD] and [Date] are on different table.

2. The field [MTDORYTDORPERIOD] is a fact field on the table. I made a small excel table and then linked it to Power BI.

3. I send it on the DM since it may contain pretty sensitive data.

 

Best Regards,

Aghna Mahardhika

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors