<?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: Date slicer - Multi dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2143572#M49288</link>
    <description>&lt;P&gt;Bumping up to get visibility. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 15:34:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-19T15:34:15Z</dc:date>
    <item>
      <title>Date slicer - Multi dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2141305#M49224</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a date filter with following scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. IF Monday - Display Fri date&lt;/P&gt;&lt;P&gt;2. IF Tuesday - display Sat , Sun, Mon dates&lt;/P&gt;&lt;P&gt;2. Rest all Day - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display like below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Slicer Date&amp;nbsp; &amp;nbsp; &amp;nbsp;Date&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;10/12/2021&amp;nbsp; &amp;nbsp;10/11/2021&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/10/2021&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/09/2021&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;10/11/2021&amp;nbsp; &amp;nbsp;10/08/2021&lt;/P&gt;&lt;P&gt;10/10/2021&amp;nbsp; 10/09/2021&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;10/09/2021&amp;nbsp; &amp;nbsp;10/08/2021&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried below option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE = IF ( 'DateDim' [DayofWeek] = "Monday", 'DateDim'[Date] - 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF ( 'DateDim' [DayofWeek] = "Tuesday",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VAR Current_date = LASTDATE('DateDim'[Date])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VAR NumberofDays = WEEKDAY(LASTDATE('DateDim'[Date]) ,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN&amp;nbsp;&amp;nbsp; DATEADD(Current_date, -1 * NumberofDays, DAY),&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;'DateDim'[Date] -1 ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Result :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; for 10/12/2021 it shows 10/09/2021 date only. I want to see 10/09 , 10/10, 10/11&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 18:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2141305#M49224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T18:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date slicer - Multi dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2143572#M49288</link>
      <description>&lt;P&gt;Bumping up to get visibility. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2143572#M49288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-19T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date slicer - Multi dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2155277#M49755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on test, we haven’t found a method to put Date column and Slicer Date column to same table visual. But you may consider this solution.&lt;/P&gt;
&lt;P&gt;1 Create a Slicer with Date column from Slicer table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 Create a Measure to set flag for Date column from Date table&lt;/P&gt;
&lt;P&gt;Flag =&lt;/P&gt;
&lt;P&gt;var _selecteddate=SELECTEDVALUE('Slicer'[Date])&lt;/P&gt;
&lt;P&gt;var _weeknum=WEEKNUM(_selecteddate)&lt;/P&gt;
&lt;P&gt;var _weekday=WEEKDAY(_selecteddate,2)&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;SWITCH(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _weekday,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,IF(MAX('calender'[Date])=_selecteddate-3,1,0),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,IF((MAX('calender'[Date])&amp;gt;=_selecteddate-3&amp;amp;&amp;amp;MAX('calender'[Date])&amp;lt;=_selecteddate-1),1,0),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(MAX('calender'[Date])=_selecteddate-1,1,0))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 Use Date column to create Table visual and use Flag measure to set filter on this visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 Select a date in Slicer, you will get expected date in Table visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer to the uploaded pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly. If you still have questions, please feel free to let me know. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 08:28:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2155277#M49755</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-10-26T08:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date slicer - Multi dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2159279#M49921</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Caiyun, this alternate solution worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 21:50:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-Multi-dates/m-p/2159279#M49921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-27T21:50:21Z</dc:date>
    </item>
  </channel>
</rss>

