<?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 Date with few empty dates - hwo to create Between slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4047440#M160541</link>
    <description>&lt;P&gt;I have payment date column and trying to create slicer with between. Bu when I select date from slicer it empties table. any work around?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 04:45:34 GMT</pubDate>
    <dc:creator>annam</dc:creator>
    <dc:date>2024-07-18T04:45:34Z</dc:date>
    <item>
      <title>Date with few empty dates - hwo to create Between slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4047440#M160541</link>
      <description>&lt;P&gt;I have payment date column and trying to create slicer with between. Bu when I select date from slicer it empties table. any work around?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4047440#M160541</guid>
      <dc:creator>annam</dc:creator>
      <dc:date>2024-07-18T04:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date with few empty dates - hwo to create Between slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4047618#M160548</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616649" data-lia-user-login="annam" class="lia-mention lia-mention-user"&gt;annam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Why not use a&lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_self"&gt; Date Table&lt;/A&gt;?&lt;BR /&gt;&lt;BR /&gt;Create an Active One to Many relationship from the Date column in the Date table to the payment date column in your table.&lt;BR /&gt;&lt;BR /&gt;Create a slicer from the Date column in the date table and use the columns from the Data table in a visual that has a measure from your table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 06:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4047618#M160548</guid>
      <dc:creator>Joe_Barry</dc:creator>
      <dc:date>2024-07-18T06:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date with few empty dates - hwo to create Between slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4050240#M160682</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616649" data-lia-user-login="annam" class="lia-mention lia-mention-user"&gt;annam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My solution is to add missing dates in the source data and fill in the amount as “BLANK”.&lt;/P&gt;
&lt;P&gt;In this way, when using a slicer with between, there will be no interval dates that cause visual objects to be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Here are the columns included in my example table.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new table using the following DAX :
&lt;P&gt;CompleteTable = ADDCOLUMNS(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; CROSSJOIN(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALENDAR(MIN(Payment[Date]), MAX(Payment[Date])),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DISTINCT(Payment[Name])),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Amount",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COALESCE(LOOKUPVALUE(Payment[Amount],Payment[Date],[Date]), BLANK())&lt;/P&gt;
&lt;P&gt;)&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&amp;nbsp;Create a one-to-many relationship from table“Payment” to table“CompleteTable” by “Date” columns.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Put “Date”, “Amount” from table“CompleteTable” and “Name” from table“Payment” into the visual object. Put “Date” from table“CompleteTable” into the slicer.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Here is my final test result.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope this solution meets your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Jarvis Tang&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 08:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-with-few-empty-dates-hwo-to-create-Between-slicer/m-p/4050240#M160682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-19T08:31:39Z</dc:date>
    </item>
  </channel>
</rss>

