<?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: Use slicer as selector - show no selections when no slicer option active in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4690172#M179610</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this below measure:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SelectedOptionCount = &lt;BR /&gt;VAR SelectedOptions = COUNTROWS(VALUES('Sales'[SalesOption]))&lt;BR /&gt;VAR TotalOptions = COUNTROWS(ALL('Sales'[SalesOption]))&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;SelectedOptions = 0, BLANK(),&amp;nbsp;&lt;BR /&gt;SelectedOptions = TotalOptions &amp;amp;&amp;amp; NOT HASONEFILTER('Sales'[SalesOption]), BLANK(),&amp;nbsp;&lt;BR /&gt;SelectedOptions&amp;nbsp;&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will Return BLANK() when nothing is selected or when Select All is selected but no real filter is applied. Return count when actual filtering is done.&lt;/P&gt;
&lt;P&gt;Apply a visual level filter SelectedOptionCount is not blank. This ensures the visual appears only when the user actively selects options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 07:00:56 GMT</pubDate>
    <dc:creator>v-achippa</dc:creator>
    <dc:date>2025-05-13T07:00:56Z</dc:date>
    <item>
      <title>Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681546#M179309</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to use a slicer as a selector, displaying no selections when no slicer option is checked, and all when select all is checked.&lt;/P&gt;&lt;P&gt;I use the following measure to count no. of selections:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SelectedOptionCount =
VAR SelectedOptions = COUNTROWS (ALLSELECTED (...))
VAR TotalOptions = COUNTROWS (ALL((...)))
RETURN
IF (SelectedOptions = TotalOptions||ISBLANK(SelectedOptions), 0, SelectedOptions)&lt;/LI-CODE&gt;&lt;P&gt;The card on the right has field SalesOption. The filter,&amp;nbsp;&lt;EM&gt;SelectOptionCount &amp;gt; 0, on it&lt;/EM&gt;&amp;nbsp;ensures no selections show when the slicer is inactive. However, SelectOptionCount is 0 when I select all with my current measure:&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;&lt;!--  notionvc: d936c5eb-77a0-48b3-afe0-d3ba07fcba6b  --&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 08:18:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681546#M179309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-06T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681599#M179311</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;SelectedOptionCount =&lt;BR /&gt;VAR SelectedOptions = COUNTROWS (ALLSELECTED (...))&lt;BR /&gt;VAR TotalOptions = COUNTROWS (ALL((...)))&lt;BR /&gt;RETURN&lt;BR /&gt;IF (SelectedOptions = TotalOptions, TotalOptions, IF(ISBLANK(SelectedOptions), 0, SelectedOptions))&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 09:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681599#M179311</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-05-06T09:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681646#M179313</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF ( (SelectedOptions = TotalOptions &amp;amp;&amp;amp; NOT ISFILTERED(...) ) ||ISBLANK(SelectedOptions), 0, SelectedOptions)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 May 2025 09:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4681646#M179313</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-05-06T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4684463#M179411</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure displays as 0 in the card, but the filter &amp;gt;0 doesn't work for some reason&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 10:19:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4684463#M179411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-08T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4690172#M179610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this below measure:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SelectedOptionCount = &lt;BR /&gt;VAR SelectedOptions = COUNTROWS(VALUES('Sales'[SalesOption]))&lt;BR /&gt;VAR TotalOptions = COUNTROWS(ALL('Sales'[SalesOption]))&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;SelectedOptions = 0, BLANK(),&amp;nbsp;&lt;BR /&gt;SelectedOptions = TotalOptions &amp;amp;&amp;amp; NOT HASONEFILTER('Sales'[SalesOption]), BLANK(),&amp;nbsp;&lt;BR /&gt;SelectedOptions&amp;nbsp;&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will Return BLANK() when nothing is selected or when Select All is selected but no real filter is applied. Return count when actual filtering is done.&lt;/P&gt;
&lt;P&gt;Apply a visual level filter SelectedOptionCount is not blank. This ensures the visual appears only when the user actively selects options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 07:00:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4690172#M179610</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-05-13T07:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4692267#M179675</link>
      <description>&lt;P&gt;I want to distiguish between 'Select all' and select nothing. This formula is more complicated but results in this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 10:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4692267#M179675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-14T10:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4693605#M179740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the updated measure, it will distinguish all the cases:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SelectedOptionStatus =&lt;/P&gt;
&lt;P&gt;VAR SelectedCount = COUNTROWS(VALUES('Sales'[SalesOption]))&lt;/P&gt;
&lt;P&gt;VAR TotalCount = COUNTROWS(ALL('Sales'[SalesOption]))&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; TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedCount = 0, "Nothing Selected",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedCount = TotalCount &amp;amp;&amp;amp; NOT ISFILTERED('Sales'[SalesOption]), "All Selected (No Filter)",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedCount = TotalCount, "All Selected (Manual)",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Filtered Selection"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 07:47:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4693605#M179740</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-05-15T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4696146#M179856</link>
      <description>&lt;P&gt;It always returns 'Filtered Selection'. I believe that because this slicer is affected by another in a previous page. Is there a workaround?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 14:00:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4696146#M179856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-16T14:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use slicer as selector - show no selections when no slicer option active</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4699891#M180031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this below approach:&lt;/P&gt;
&lt;P&gt;Create a disconnected table and use this in the slicer instead of the original one i.e 'Sales'[SalesOption]. Now use this below measure to detect the slicer status:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SelectedOptionStatus =&lt;/P&gt;
&lt;P&gt;VAR TotalOptions = COUNTROWS(ALL('SalesOptions_Disconnected'))&lt;/P&gt;
&lt;P&gt;VAR SelectedOptions = COUNTROWS(VALUES('SalesOptions_Disconnected'))&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; TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedOptions = 0, "Nothing Selected",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedOptions = TotalOptions, "All Selected",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedOptions &amp;lt; TotalOptions, "Filtered Selection",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Other"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This avoids interaction from other slicers or pages and gives the expected output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 10:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-slicer-as-selector-show-no-selections-when-no-slicer-option/m-p/4699891#M180031</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-05-20T10:29:19Z</dc:date>
    </item>
  </channel>
</rss>

