<?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: Formatting for active slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-for-active-slicer/m-p/3039265#M104179</link>
    <description>&lt;P&gt;I found a solution using no background for the slicer, with a shape behind with colour defined using ISFILTERED.&amp;nbsp; I believe there is no solution to change the background directly as per the initial spec.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 04:16:08 GMT</pubDate>
    <dc:creator>ghaines</dc:creator>
    <dc:date>2023-01-24T04:16:08Z</dc:date>
    <item>
      <title>Formatting for active slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-for-active-slicer/m-p/3030331#M103528</link>
      <description>&lt;DIV&gt;I have a number of slicers on a page, many of them need to be drop down type, and it would be helpful to give the user some kind of feedback that a particular slicer is active.&amp;nbsp; I'm trying to make the background vary using a measure (adding a green tinge if the slicer is being used).&amp;nbsp; Is there a measure that I can use to detect if the slicer is actively being used?&amp;nbsp; ISFILTERED is only working if there is another filter acting on it from externally&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;IF(ISFILTERED('Regions'[Region]),&lt;BR /&gt;"rgba(192,255,255,0.2)",&lt;BR /&gt;"rgba(255,255,255,0.2)"&lt;BR /&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I also tried&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;SemiTransRegion =&lt;BR /&gt;VAR OptionsCount = COUNTROWS(ALLSELECTED('Regions'[Region]))&lt;BR /&gt;VAR SelectedCount = DISTINCTCOUNTNOBLANK('Regions'[Region])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF(OptionsCount &amp;lt;&amp;gt; SelectedCount,&lt;BR /&gt;"rgba(192,255,255,0.2)","rgba(255,255,255,0.2)")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not even sure if each of these VAR is evaluating to "all options" or "selected options", since I can't see their values within the same slicer visual, and if I return the colour and the VAR in separate measures in a table, they do not change in the same way as they must be in the slicer, as I get results in the table that should be useful.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Jan 2023 05:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-for-active-slicer/m-p/3030331#M103528</guid>
      <dc:creator>ghaines</dc:creator>
      <dc:date>2023-01-19T05:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting for active slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-for-active-slicer/m-p/3039265#M104179</link>
      <description>&lt;P&gt;I found a solution using no background for the slicer, with a shape behind with colour defined using ISFILTERED.&amp;nbsp; I believe there is no solution to change the background directly as per the initial spec.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 04:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-for-active-slicer/m-p/3039265#M104179</guid>
      <dc:creator>ghaines</dc:creator>
      <dc:date>2023-01-24T04:16:08Z</dc:date>
    </item>
  </channel>
</rss>

