<?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: Background clolor in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2428659#M64591</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149850" data-lia-user-login="Bergh" class="lia-mention lia-mention-user"&gt;Bergh&lt;/a&gt; , You can create column meausre &lt;/P&gt;
&lt;P&gt;COlor =&lt;/P&gt;
&lt;P&gt;Var _max = max(Table[Datediff])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;switch(True() ,&lt;/P&gt;
&lt;P&gt;left(Max(Table[Column1]),2) = "No" &amp;amp;&amp;amp; _max &amp;gt;=-14 &amp;amp;&amp;amp; _max&amp;lt; 0 , "Yellow",&lt;/P&gt;
&lt;P&gt;left(Max(Table[Column1]),2) = "No" &amp;amp;&amp;amp; _max &amp;gt; 0 , "Red",&lt;/P&gt;
&lt;P&gt;"White"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do conditional formatting by measure and apply it on pie? : &lt;A href="https://youtu.be/RqBb5eBf_I4" target="_blank"&gt;https://youtu.be/RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this in conditional formatting using field value option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 06:46:38 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-31T06:46:38Z</dc:date>
    <item>
      <title>Background clolor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2428551#M64588</link>
      <description>&lt;P&gt;Hi. I have a problem. I have a column that should show different background colors. I can not do this via condition control.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have three columns. One column with Yes and No, one column with dates and a third with Datediff. I have combined the Yes and No column and the Date column into a separate column as in the picture. What I want is that if it says Yes or No and is over -14, it should be unchanged.&lt;/P&gt;&lt;P&gt;If it says No and is between -14 to 0, the background should be yellow, if it says No and is more than 0 to Max, the background should be red. How do I fix this??&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;// Mattias&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 05:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2428551#M64588</guid>
      <dc:creator>Bergh</dc:creator>
      <dc:date>2022-03-31T05:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background clolor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2428659#M64591</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149850" data-lia-user-login="Bergh" class="lia-mention lia-mention-user"&gt;Bergh&lt;/a&gt; , You can create column meausre &lt;/P&gt;
&lt;P&gt;COlor =&lt;/P&gt;
&lt;P&gt;Var _max = max(Table[Datediff])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;switch(True() ,&lt;/P&gt;
&lt;P&gt;left(Max(Table[Column1]),2) = "No" &amp;amp;&amp;amp; _max &amp;gt;=-14 &amp;amp;&amp;amp; _max&amp;lt; 0 , "Yellow",&lt;/P&gt;
&lt;P&gt;left(Max(Table[Column1]),2) = "No" &amp;amp;&amp;amp; _max &amp;gt; 0 , "Red",&lt;/P&gt;
&lt;P&gt;"White"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do conditional formatting by measure and apply it on pie? : &lt;A href="https://youtu.be/RqBb5eBf_I4" target="_blank"&gt;https://youtu.be/RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this in conditional formatting using field value option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:46:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2428659#M64591</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-31T06:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Background clolor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2431516#M64725</link>
      <description>&lt;P&gt;The problem I have now is that the "No" don't&amp;nbsp;recognize in the code:&lt;/P&gt;&lt;P&gt;If I take away the "No" thing, the color work but when in the "No" code everything get White. Can it be the Max in LEFT(Max that is the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 09:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2431516#M64725</guid>
      <dc:creator>Bergh</dc:creator>
      <dc:date>2022-04-01T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Background clolor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2434766#M64942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149850" data-lia-user-login="Bergh" class="lia-mention lia-mention-user"&gt;Bergh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the attached .pbix file. It's a sample. Please check if there are any differences between your scenario and the sample.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 07:40:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2434766#M64942</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2022-04-04T07:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background clolor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2434957#M64949</link>
      <description>&lt;P&gt;Thanks!! It work now!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 08:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-clolor/m-p/2434957#M64949</guid>
      <dc:creator>Bergh</dc:creator>
      <dc:date>2022-04-04T08:25:15Z</dc:date>
    </item>
  </channel>
</rss>

