<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filter Slicer based on value on another slicer seems not work on me (a bug?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4042021#M160281</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="774268" data-lia-user-login="aghnamahardhika" class="lia-mention lia-mention-user"&gt;aghnamahardhika&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to get a better understanding on your problem and make further troubleshooting, could you please provide the following info?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are the field [MTDORYTDORPERIOD] and [Date] in the same table?&lt;/LI&gt;
&lt;LI&gt;The field&amp;nbsp;[MTDORYTDORPERIOD] is a calculated column or fact field of the table?&lt;/LI&gt;
&lt;LI&gt;Could you please provide your sample pbix file?&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 08:24:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-15T08:24:14Z</dc:date>
    <item>
      <title>Filter Slicer based on value on another slicer seems not work on me (a bug?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4038399#M160097</link>
      <description>&lt;P&gt;Hello Power BI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is the situation,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed some YouTube tutorials like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and they provide a quite straightforward way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what I did is I created a measure as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CustomDateDisable =&lt;/SPAN&gt; &lt;SPAN&gt;INT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MTD or YTD'&lt;/SPAN&gt;&lt;SPAN&gt;[MTDORYTDORPERIOD]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;"Period"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The measure seemed to work well for me. Proved by the value of the CustomDateDisable card:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;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.&lt;/P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate if there is someone to correct my logic or the implementation to this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[UPDATE]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey Power BI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I update the case for an important context.&lt;/P&gt;&lt;P&gt;It seems that I encountered some type of bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When I changed the field to something other than Date, the filter worked perfectly to disabled the slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the filter still worked fine when I changed the field to date, but the style I choose was vertical list or tile&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only when I change the style to between, before, after, dropdown, relative date, or relative time, that the filter start to not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully anyone on this forum can notice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jul 2024 08:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4038399#M160097</guid>
      <dc:creator>aghnamahardhika</dc:creator>
      <dc:date>2024-07-12T08:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Slicer based on value on another slicer seems not work on me (a bug?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4042021#M160281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="774268" data-lia-user-login="aghnamahardhika" class="lia-mention lia-mention-user"&gt;aghnamahardhika&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to get a better understanding on your problem and make further troubleshooting, could you please provide the following info?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are the field [MTDORYTDORPERIOD] and [Date] in the same table?&lt;/LI&gt;
&lt;LI&gt;The field&amp;nbsp;[MTDORYTDORPERIOD] is a calculated column or fact field of the table?&lt;/LI&gt;
&lt;LI&gt;Could you please provide your sample pbix file?&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 08:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4042021#M160281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-15T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Slicer based on value on another slicer seems not work on me (a bug?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4042059#M160286</link>
      <description>&lt;P&gt;Dear Anonymous&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The field &lt;STRONG&gt;[MTDORYTDORPERIOD] and [Date]&lt;/STRONG&gt; are on different table.&lt;/P&gt;&lt;P&gt;2. The field &lt;STRONG&gt;[MTDORYTDORPERIOD]&lt;/STRONG&gt; is a fact field on the table. I made a small excel table and then linked it to Power BI.&lt;/P&gt;&lt;P&gt;3. I send it on the DM since it may contain pretty sensitive data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aghna Mahardhika&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 08:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Slicer-based-on-value-on-another-slicer-seems-not-work-on/m-p/4042059#M160286</guid>
      <dc:creator>aghnamahardhika</dc:creator>
      <dc:date>2024-07-15T08:42:00Z</dc:date>
    </item>
  </channel>
</rss>

