<?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: Conditionally colour Column based on Slicer Selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409663#M175108</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's been almost 4 years since your answer but it just woked for me so it is amazing.&lt;/P&gt;&lt;P&gt;I was wondering if there's any way to have this work but for multiple selections, like if you were to choose both A and B then both columns would become red and the other one would remain blue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time that I select multiple options in the slicer it takes the FALSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 18:49:36 GMT</pubDate>
    <dc:creator>butterfly_fly25</dc:creator>
    <dc:date>2025-02-13T18:49:36Z</dc:date>
    <item>
      <title>Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2042856#M45873</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i may be coming at this all wrong but here goes,&lt;/P&gt;&lt;P&gt;i have a dashboard of staff performance where the visuals are set by the selection of a name, in most cases this means that visuals only contain data relevent to that person, but i want to show their performance amongst their peers, so for this visual i made it so the Name Slicer has no effect on those values. this works as i want it to, now the icing on the cake would be to highlight the selected Agents column in a contrasting colour. In excel i have done this by creating 2 series where one contains the values for the selected agent and blanks on the rows that are not the selected agent and the other vis versa then plot them on a stacked column chart and bingo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There is probably a better way in PBI but i am struggling to escape the filter context in the right way i think. i can make it work with a simple measure like if (agent name = "Beth","Green","Blue") and use that in the default colour on data colours, but when i try to use a dynamic value from the Slicer it fails.&lt;/P&gt;&lt;P&gt;any help greatfully recieved.&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;</description>
      <pubDate>Fri, 27 Aug 2021 11:55:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2042856#M45873</guid>
      <dc:creator>sbsgsaw1</dc:creator>
      <dc:date>2021-08-27T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2044719#M45931</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="162864" data-lia-user-login="sbsgsaw1" class="lia-mention lia-mention-user"&gt;sbsgsaw1&lt;/a&gt;&amp;nbsp;use a disconnected table to feed the user slicer.&amp;nbsp; Then create a measure that checks which user is selected and apply the color accordingly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = if(SELECTEDVALUE('Table'[User])=SELECTEDVALUE('Table (2)'[User]),"Red","Blue")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use conditional formatting on the data colors for the visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which gives this result&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>Mon, 30 Aug 2021 00:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2044719#M45931</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-30T00:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2053370#M46234</link>
      <description>&lt;P&gt;Hi, Thanks a million for your help, in your example is table or table 2 the disconected table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 08:25:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2053370#M46234</guid>
      <dc:creator>sbsgsaw1</dc:creator>
      <dc:date>2021-09-02T08:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2053865#M46246</link>
      <description>&lt;P&gt;Table2 is the disconnected table that feeds the slicer. You can create it in Power Query as a duplicate of Table, then choose the User column and remove duplicates.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 11:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/2053865#M46246</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-09-02T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409663#M175108</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's been almost 4 years since your answer but it just woked for me so it is amazing.&lt;/P&gt;&lt;P&gt;I was wondering if there's any way to have this work but for multiple selections, like if you were to choose both A and B then both columns would become red and the other one would remain blue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time that I select multiple options in the slicer it takes the FALSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 18:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409663#M175108</guid>
      <dc:creator>butterfly_fly25</dc:creator>
      <dc:date>2025-02-13T18:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409675#M175110</link>
      <description>&lt;P&gt;use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IN VALUES()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rather than&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECTEDVALUE&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 18:55:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409675#M175110</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-13T18:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409682#M175112</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I got this error&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409682#M175112</guid>
      <dc:creator>butterfly_fly25</dc:creator>
      <dc:date>2025-02-13T19:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409685#M175113</link>
      <description>&lt;P&gt;That's why you need to use IN VALUES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409685#M175113</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-13T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409717#M175116</link>
      <description>&lt;P&gt;The problem is my use of IN, I know it is not right but I am just starting to learn. This is what the measure looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WeekColorKey = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Table1[WeekNumber])=&lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Table2[WeekNumber]),&lt;/SPAN&gt;&lt;SPAN&gt;"red"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"blue"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409717#M175116</guid>
      <dc:creator>butterfly_fly25</dc:creator>
      <dc:date>2025-02-13T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour Column based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409723#M175117</link>
      <description>&lt;P&gt;I got it, sorry. Used logic at first &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WeekColorKey = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Table1[WeekNumber]) &lt;/SPAN&gt;&lt;SPAN&gt;IN&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(Table2[WeekNumber]),"red","blue"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditionally-colour-Column-based-on-Slicer-Selection/m-p/4409723#M175117</guid>
      <dc:creator>butterfly_fly25</dc:creator>
      <dc:date>2025-02-13T19:42:30Z</dc:date>
    </item>
  </channel>
</rss>

