<?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: Dateslicer controlled by a measure filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773725#M37163</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I think I have managed to add a link to a dummy report to better showcase the issue - inserted at the beginning of the original post.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 07:36:40 GMT</pubDate>
    <dc:creator>REGHnoob</dc:creator>
    <dc:date>2021-04-08T07:36:40Z</dc:date>
    <item>
      <title>Dateslicer controlled by a measure filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1772403#M37103</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Hope someone can help. This Is bugging the heck out of me. Examble images at the end of the post.&lt;/P&gt;&lt;P&gt;&lt;A title="Link to Dummyreport" href="https://regionh-my.sharepoint.com/:u:/g/personal/kasper_jonstrup_andersen_01_regionh_dk/EQVZOoLpNF5BlXvDg-fAwLwB3JkeDWdNEA69Hh8B7sClOg?email=kasper.jonstrup.andersen.01%40regionh.dk&amp;amp;e=rzwuG1" target="_blank" rel="noopener"&gt;Link to onedrive file - hope this works&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to enhance the UI I am trying to create a filter where from where the user can specify set intervals of the past 35 days, the past 60 days and the past 420 days (these are just exambles).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the filter is selected the date slicer on the page must be filtered accordingly.&lt;/P&gt;&lt;P&gt;So if no filter is selected the entire period is available and if for instance 'offset -35' is selected the date slicer is limited to days tat are no less than 35 days ago as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured I would add a binary filter to my date slicer – 1 or 0 based and a measure that produces 1 if the value is larger than the specified offset number i.e. -35 else 0. See Image1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below I have a measure – DateFilter – based on a disconnected table (image2). It outputs either 1 or 0 relative to the offset value in the Dimension date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seemed to work when I tested in a table and when I set is up as a filter LIST. When I select -35 DateFilter returns 1 for the desired period and 0 before. See image3 and Image4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when set as a slicer it doesn’t work. The slicer is can't be modified and just shows dd-mm-yyyy. See image5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing it’s because the slicer doesn’t have a selected value. Any Ideas as to how I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A big Thank You in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Kasper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datefilter&amp;nbsp;=&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;SelectDaysOffset&lt;/SPAN&gt;&amp;nbsp;=&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;D_Periodfilter[DaysOffset]&amp;nbsp;&lt;SPAN&gt;)&lt;/SPAN&gt;&l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amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Datefilter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Image2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Image3&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Image4&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Image5&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:35:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1772403#M37103</guid>
      <dc:creator>REGHnoob</dc:creator>
      <dc:date>2021-04-08T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dateslicer controlled by a measure filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773369#M37154</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="122284" data-lia-user-login="REGHnoob" class="lia-mention lia-mention-user"&gt;REGHnoob&lt;/a&gt; , Based on what I got, an independent date table should help you &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer my video: &lt;A href="https://youtu.be/44fGGmg9fHI" target="_blank"&gt;https://youtu.be/44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 03:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773369#M37154</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-08T03:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dateslicer controlled by a measure filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773638#M37161</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestion. It's pretty much the method I have used. I&amp;nbsp;do have an independent table - I just referred to it as disconnected table (&lt;SPAN&gt;&amp;nbsp;D_Periodfilter )&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;But also the suggested solution is not shown to effect the dateslicer it self. It 'only* effects the value table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing that really puzzles me - and I don't think I explained that well enoguh - is the fact that it works as intended when it is set up in a table or a &lt;STRONG&gt;slicer list&lt;/STRONG&gt;. But not as a date slicer set up with a &lt;STRONG&gt;slider and between dates&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen on images 3 and 4 I only have values for the specified dates - in this case 1. Other than specified dates have the value 0 (Zero). So my solution basically mirros the example you linked to - I just don't have a net value but a fixed value of either 1 or 0 (zero).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 06:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773638#M37161</guid>
      <dc:creator>REGHnoob</dc:creator>
      <dc:date>2021-04-08T06:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dateslicer controlled by a measure filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773725#M37163</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I think I have managed to add a link to a dummy report to better showcase the issue - inserted at the beginning of the original post.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:36:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dateslicer-controlled-by-a-measure-filter/m-p/1773725#M37163</guid>
      <dc:creator>REGHnoob</dc:creator>
      <dc:date>2021-04-08T07:36:40Z</dc:date>
    </item>
  </channel>
</rss>

