Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello Power BI community,
So here is the situation,
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:
or
and they provide a quite straightforward way to do it.
So, what I did is I created a measure as follow:
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.
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.
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
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.
Hi @aghnamahardhika ,
In order to get a better understanding on your problem and make further troubleshooting, could you please provide the following info?
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