<?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: Unable to select multiple values in slicer and pass to datesbetween function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067677#M106286</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales New Measure =
VAR SlicerSelection = 
VALUES('Calendar'[DAY_OF_WEEK_NM])
RETURN 
IF(
    SlicerSelection=BLANK(),
    [Sales Dynamic],
    CALCULATE(
        sum(Purchase[Sales]),
        DATESBETWEEN(
            'Calendar'[CALENDAR_DT], 
            [Min Date], 
            [Max Date]
        ), 
       'Calendar'[DAY_OF_WEEK_NM] IN SlicerSelection
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 03:13:47 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-02-08T03:13:47Z</dc:date>
    <item>
      <title>Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067616#M106283</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DAX measure which works fine with a single value selected in the slicer but when multiple values are selected this doesn't work as expected. Can someone please guide me? Thank you for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales New Measure =&lt;BR /&gt;VAR SlicerSelection = SELECTEDVALUE('Calendar'[DAY_OF_WEEK_NM])&lt;BR /&gt;RETURN IF(SlicerSelection=BLANK(),[Sales Dynamic],CALCULATE(sum(Purchase[Sales]),&lt;BR /&gt;DATESBETWEEN('Calendar'[CALENDAR_DT], [Min Date], [Max Date]), 'Calendar'[DAY_OF_WEEK_NM] = SlicerSelection))&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 02:42:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067616#M106283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T02:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067677#M106286</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales New Measure =
VAR SlicerSelection = 
VALUES('Calendar'[DAY_OF_WEEK_NM])
RETURN 
IF(
    SlicerSelection=BLANK(),
    [Sales Dynamic],
    CALCULATE(
        sum(Purchase[Sales]),
        DATESBETWEEN(
            'Calendar'[CALENDAR_DT], 
            [Min Date], 
            [Max Date]
        ), 
       'Calendar'[DAY_OF_WEEK_NM] IN SlicerSelection
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 03:13:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067677#M106286</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T03:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067696#M106287</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;for helping. I did the changes but got the following error. Please advise. Thank you&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 03:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3067696#M106287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T03:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068034#M106309</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales New Measure =
VAR SlicerSelection = 
VALUES('Calendar'[DAY_OF_WEEK_NM])
RETURN 
IF(
    COUNTROWS(SlicerSelection)= COUNTROWS(ALL('Calendar'[DAY_OF_WEEK_NM])) ,
    [Sales Dynamic],
    CALCULATE(
        sum(Purchase[Sales]),
        DATESBETWEEN(
            'Calendar'[CALENDAR_DT], 
            [Min Date], 
            [Max Date]
        ), 
       'Calendar'[DAY_OF_WEEK_NM] IN SlicerSelection
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 07:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068034#M106309</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068041#M106311</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;, You're the Best!! Thank you for all your help.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 07:09:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068041#M106311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to select multiple values in slicer and pass to datesbetween function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068123#M106316</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also learned from your case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in general, when there are multiple results to capture from a slicer, we either&lt;/P&gt;&lt;P&gt;1) use MIN/MAX instead of&amp;nbsp;SELECTEDVALUE, to get the min/max value only;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2) use VALUES instead SELECTEDVALUE. But when nothing is selected,&amp;nbsp;SELECTEDVALUE() returns blank, but&amp;nbsp;VALUES() returns a full list, like ALL(). This not intuitive from the beginning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 07:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-select-multiple-values-in-slicer-and-pass-to/m-p/3068123#M106316</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T07:32:33Z</dc:date>
    </item>
  </channel>
</rss>

