<?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 with toggle to include/exclude &amp;quot;blank&amp;quot; dates and plot points onto mapping visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2881951#M93315</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 your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;P&gt;First, create a new table for slicer:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a slicer and turn on the single select:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then apply the measure to the visual level filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    SWITCH (
        SELECTEDVALUE ( 'For Slicer'[Value] ),
        "Exclude", NOT ( ISBLANK ( MAX ( 'Table'[Date] ) ) ),
        "Include", TRUE ()
    ),
    1,
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&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.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 06:39:34 GMT</pubDate>
    <dc:creator>v-jianboli-msft</dc:creator>
    <dc:date>2022-11-03T06:39:34Z</dc:date>
    <item>
      <title>Date slicer with toggle to include/exclude "blank" dates and plot points onto mapping visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2880554#M93222</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to create a map in which the points&amp;nbsp;(long and lat.) are filterable by a date slicer and have a toggle that includes/excludes blank dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue concerns the treatment of blank/"null" dates whilst using slicer. I do not believe there is a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;- using a variable input from user&amp;nbsp;(slicer outputting a value with with "selectedvalue" measure) - similar to this post:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/OR-include-blank-values-in-date-slicer/td-p/959529" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/OR-include-blank-values-in-date-slicer/td-p/959529&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- restructuring data/queries (e.g. duplicating the data set three times over for each scenario)&lt;/P&gt;&lt;P&gt;- other&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply having a drop-down list whereby the user selecs the date and "blank" checkbox isnt a neat solution when looking across years of dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;****EDIT: I am aware of the method using measures as user-input variables - however to my knowledge this does not work for maps (long. lat. inputs) as the measure neds to return a table of circa 10,000 lat. and longs. which would take too much computing time when looking at a published dashboard product.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give you an idea, the below is a small aea of a larger network. The date filter is being used on each of those segments (noted by colour here). Recalculating the measure every time a filter is touched will take too long (the final data set may be in the order of 1-2 million points).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current approach is to exclude all blank dates and show on another page/tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Tue, 15 Nov 2022 05:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2880554#M93222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T05:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date slicer with toggle to include/exclude "blank" dates and plot points onto mapping visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2881951#M93315</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 your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;P&gt;First, create a new table for slicer:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a slicer and turn on the single select:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then apply the measure to the visual level filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    SWITCH (
        SELECTEDVALUE ( 'For Slicer'[Value] ),
        "Exclude", NOT ( ISBLANK ( MAX ( 'Table'[Date] ) ) ),
        "Include", TRUE ()
    ),
    1,
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&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.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 06:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2881951#M93315</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-03T06:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date slicer with toggle to include/exclude "blank" dates and plot points onto mapping visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2905366#M94773</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;v-jianboli-msft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using measures as user-input variables works for other visuals. To my knowledge it does not work for plotting many points onto a map (i.e. putting a measure into the long and lat fields for say 10,000 points does not work (and if there is a way to make this work, calculating such a measure would make it too slow once published)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 05:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-slicer-with-toggle-to-include-exclude-quot-blank-quot-dates/m-p/2905366#M94773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T05:31:35Z</dc:date>
    </item>
  </channel>
</rss>

