<?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: Need DAX for Conditional Formatting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-DAX-for-Conditional-Formatting/m-p/1820320#M38613</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15853" data-lia-user-login="robarbie" class="lia-mention lia-mention-user"&gt;robarbie&lt;/a&gt; , you can create a color measure&amp;nbsp; &lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;Switch(True(),&lt;/P&gt;
&lt;P&gt;[WDT ADC] &amp;lt; [ADC Budget] , "red", "green")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;more examples&lt;/P&gt;
&lt;P&gt;Color sales = if(AVERAGE(Sales[Sales Amount])&amp;lt;170,"green","red")&lt;BR /&gt;Color Year = if(FIRSTNONBLANK('Table'[Year],2014) &amp;lt;=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)&amp;gt;2018,"red","yellow"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;color =&lt;BR /&gt;switch ( true(),&lt;BR /&gt;FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" &amp;amp;&amp;amp; sum('Table'[Value]) &amp;gt;500,"lightgreen",&lt;BR /&gt;FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" &amp;amp;&amp;amp; sum('Table'[Value]) &amp;gt;1000,"lightgreen",&lt;BR /&gt;// Add more conditions&lt;BR /&gt;"red"&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And use that in conditional formatting using the field value option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer for steps&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column" target="_blank"&gt;https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=RqBb5eBf_I4" target="_blank"&gt;https://www.youtube.com/watch?v=RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 17:17:22 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-03T17:17:22Z</dc:date>
    <item>
      <title>Need DAX for Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-DAX-for-Conditional-Formatting/m-p/1820278#M38611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help creating a DAX measure to create conditional formatting based off the ADC Budget field.&amp;nbsp; If the other fields totals&amp;nbsp; &amp;nbsp;Daily Census, MTD ADC, and WDT ADC are less than the ADC Budget they are red, if greater it is green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The screen shot below is a little hard to see.&amp;nbsp; The ADC Budget field has the 178.000 at the top.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;Thanks in advace for any assistance provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rochelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 16:33:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-DAX-for-Conditional-Formatting/m-p/1820278#M38611</guid>
      <dc:creator>robarbie</dc:creator>
      <dc:date>2021-05-03T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need DAX for Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-DAX-for-Conditional-Formatting/m-p/1820320#M38613</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15853" data-lia-user-login="robarbie" class="lia-mention lia-mention-user"&gt;robarbie&lt;/a&gt; , you can create a color measure&amp;nbsp; &lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;Switch(True(),&lt;/P&gt;
&lt;P&gt;[WDT ADC] &amp;lt; [ADC Budget] , "red", "green")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;more examples&lt;/P&gt;
&lt;P&gt;Color sales = if(AVERAGE(Sales[Sales Amount])&amp;lt;170,"green","red")&lt;BR /&gt;Color Year = if(FIRSTNONBLANK('Table'[Year],2014) &amp;lt;=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)&amp;gt;2018,"red","yellow"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;color =&lt;BR /&gt;switch ( true(),&lt;BR /&gt;FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" &amp;amp;&amp;amp; sum('Table'[Value]) &amp;gt;500,"lightgreen",&lt;BR /&gt;FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" &amp;amp;&amp;amp; sum('Table'[Value]) &amp;gt;1000,"lightgreen",&lt;BR /&gt;// Add more conditions&lt;BR /&gt;"red"&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And use that in conditional formatting using the field value option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer for steps&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column" target="_blank"&gt;https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=RqBb5eBf_I4" target="_blank"&gt;https://www.youtube.com/watch?v=RqBb5eBf_I4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 17:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-DAX-for-Conditional-Formatting/m-p/1820320#M38613</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-03T17:17:22Z</dc:date>
    </item>
  </channel>
</rss>

