<?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: Conditional Formatting font text Amber in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1290142#M22144</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , As per this Amber is supported&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2018/08/10/colour-names-supported-in-power-bi-conditional-formatting/" target="_blank"&gt;https://blog.crossjoin.co.uk/2018/08/10/colour-names-supported-in-power-bi-conditional-formatting/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hexcode you have to return with #. Hope you are using "Field" option and measure. Make sure you created a measure not column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" &amp;amp;&amp;amp; sum(Table[Value]) &amp;gt;500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" &amp;amp;&amp;amp; sum(Table[Value]) &amp;gt;1000,"lightgreen",
/// Add more conditions
"red"
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 12 Aug 2020 10:24:19 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-08-12T10:24:19Z</dc:date>
    <item>
      <title>Conditional Formatting font text Amber</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1289837#M22138</link>
      <description>&lt;P&gt;Is there a way to change the font colour of a text column [BRAG STATUS] with the values "Green", "&lt;STRONG&gt;Amber&lt;/STRONG&gt;" &amp;amp; "Red"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to use conditional formatting to get a value by field for the first values (see pic attached) but it doesn't pick up the amber colour:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've even tried to use a switch function to change the HEX colours but I still cant quite get it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conditional Colour Format = SWITCH(TRUE(),MAX(audit_results[BRAG STATUS])="Green",1,MAX(audit_results[BRAG STATUS])="Amber",2,MAX(audit_results[BRAG STATUS])="Red",3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 08:52:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1289837#M22138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-12T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting font text Amber</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1290142#M22144</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , As per this Amber is supported&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2018/08/10/colour-names-supported-in-power-bi-conditional-formatting/" target="_blank"&gt;https://blog.crossjoin.co.uk/2018/08/10/colour-names-supported-in-power-bi-conditional-formatting/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hexcode you have to return with #. Hope you are using "Field" option and measure. Make sure you created a measure not column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" &amp;amp;&amp;amp; sum(Table[Value]) &amp;gt;500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" &amp;amp;&amp;amp; sum(Table[Value]) &amp;gt;1000,"lightgreen",
/// Add more conditions
"red"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Aug 2020 10:24:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1290142#M22144</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-12T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting font text Amber</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1290271#M22148</link>
      <description>&lt;P&gt;I have this measure but it cant load the data for the visual:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;color = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;switch ( true(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FIRSTNONBLANK('audit_results'[BRAG STATUS],"NA") ="GREEN" &amp;amp;&amp;amp; sum('audit_results'[BRAG STATUS]) ="GREEN","lightgreen",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FIRSTNONBLANK('audit_results'[BRAG STATUS],"NA") ="RED" &amp;amp;&amp;amp; sum('audit_results'[BRAG STATUS]) = "RED","red",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The error is "MdxScript(Model) (22,70) Calculation error in measure 'audit_results'[color]: The function SUM cannot work with values of type String&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:09:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1290271#M22148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-12T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting font text Amber</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1298293#M22442</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/conditional-formatting-with-a-text-field-in-power-bi/" target="_blank"&gt;https://exceleratorbi.com.au/conditional-formatting-with-a-text-field-in-power-bi/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 18:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1298293#M22442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-15T18:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting font text Amber</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1298575#M22452</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="height: 232px; border-style: solid;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;BRAG STATUS&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;Column2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Red&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Amber&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Green&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Red&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Amber&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Green&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="110.4px" height="29px"&gt;Red&lt;/TD&gt;
&lt;TD width="75.2px" height="29px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Conditional_Colour_Format =
VAR __status =
    CALCULATE ( FIRSTNONBLANK ( audit_results[BRAG STATUS], TRUE () ) )
VAR __color =
    SWITCH ( __status, "Green", "#4CAF50", "Amber", "#FFC107", "Red", "#f44336" )
RETURN
    __color&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditornandukrishnavs_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditornandukrishnavs_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Aug 2020 05:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-font-text-Amber/m-p/1298575#M22452</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-08-16T05:16:59Z</dc:date>
    </item>
  </channel>
</rss>

