<?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 Background color for each values in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3891925#M151752</link>
    <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;On this table, i want to add background color &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;For each values. If the value greater than 90&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;the color is grean ,and if the value between 90 and 60 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The color is yellow, and if the value less than 60 the color is red .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Can anyone please help me with this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sun, 05 May 2024 06:44:33 GMT</pubDate>
    <dc:creator>Lolo_2023</dc:creator>
    <dc:date>2024-05-05T06:44:33Z</dc:date>
    <item>
      <title>Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3891925#M151752</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;On this table, i want to add background color &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;For each values. If the value greater than 90&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;the color is grean ,and if the value between 90 and 60 &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The color is yellow, and if the value less than 60 the color is red .&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Can anyone please help me with this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 06:44:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3891925#M151752</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-05T06:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3892309#M151761</link>
      <description>&lt;P&gt;Are these independent measures or do you have a field in the column area?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 15:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3892309#M151761</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-05T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3897890#M151897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682548" data-lia-user-login="Lolo_2023" class="lia-mention lia-mention-user"&gt;Lolo_2023&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are presenting the same "Value" value, you can refer to the following expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = var _value = MAX('Table'[Values])
RETURN SWITCH(TRUE(),_value&amp;gt;90,"green",_value&amp;gt;60&amp;amp;&amp;amp;_value&amp;lt;=90,"yellow",_value&amp;lt;60,"red")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to correct me and provide more information if I have misunderstood you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 08:18:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3897890#M151897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-07T08:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898295#M151917</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Actually i want these conditions to be performed on just “Type1”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 10:14:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898295#M151917</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-07T10:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898519#M151926</link>
      <description>&lt;P&gt;then add that condition to your measure. Only return something if the SELECTEDVALUE of Type is "Type1".&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 11:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898519#M151926</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-07T11:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898554#M151930</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could you please provide more explanation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 11:40:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898554#M151930</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-07T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898565#M151931</link>
      <description>&lt;LI-CODE lang="markup"&gt;Measure = 
if(SELECTEDVALUE('Table'[Test])="Test1",
var _value = MAX('Table'[Values])
RETURN SWITCH(TRUE(),_value&amp;gt;90,"green",_value&amp;gt;60&amp;amp;&amp;amp;_value&amp;lt;=90,"yellow",_value&amp;lt;60,"red")
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 May 2024 11:43:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898565#M151931</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-07T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898611#M151935</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;It works!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;THANK YOU.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 11:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898611#M151935</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-07T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898813#M151939</link>
      <description>&lt;P&gt;&amp;nbsp;it is works perfectly, but when I am trying to change the numbers, it didn't work&lt;/P&gt;&lt;P&gt;Measure =&lt;/P&gt;&lt;P&gt;if(SELECTEDVALUE('Test'[Type])="Type1",&lt;/P&gt;&lt;P&gt;var _value = MAX('Test'[Values])&lt;/P&gt;&lt;P&gt;RETURNSWITCH(TRUE(),_value&amp;gt;=800&amp;amp;&amp;amp;_value&amp;lt;2000,"#5CB989",_value&amp;gt;=400&amp;amp;&amp;amp;_value&amp;lt;799,"#F9BA66",_value&amp;gt;=0&amp;amp;&amp;amp;_value&amp;lt;399,"#E87B72")&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;can you please check this for me&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 12:30:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3898813#M151939</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-07T12:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3899069#M151949</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
IF (
    SELECTEDVALUE ( 'Test'[Type] ) = "Type1",
    VAR _value =
        MAX ( 'Test'[Values] )
    RETURN
        SWITCH (
            TRUE (),
            _value &amp;lt; 400, "#E87B72",
            _value &amp;lt; 800, "#F9BA66",
            _value &amp;lt; 2000, "#5CB989"
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:15:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3899069#M151949</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-07T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Background color for each values in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3901333#M152030</link>
      <description>&lt;P&gt;Unfortunately, it didn't work&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:28:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-color-for-each-values-in-matrix/m-p/3901333#M152030</guid>
      <dc:creator>Lolo_2023</dc:creator>
      <dc:date>2024-05-08T07:28:57Z</dc:date>
    </item>
  </channel>
</rss>

