<?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 Need to modify dax measure to show red if the number is negative. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3001554#M101364</link>
    <description>&lt;P&gt;Power BI Community Good Day!&lt;/P&gt;&lt;P&gt;I am using the following measure in my dashboard as a label.&lt;/P&gt;&lt;P&gt;The number is negative. How can I modify the dax measure below to show red if the number is negative?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Amount Lost = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;metricsrevenuecustomer&lt;/SPAN&gt;&lt;SPAN&gt;[amount]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;metricsrevenuecustomer&lt;/SPAN&gt;&lt;SPAN&gt;[revenue_type_lvl2]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;"Lost"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Much appreciate your time.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Jan 2023 16:53:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-04T16:53:30Z</dc:date>
    <item>
      <title>Need to modify dax measure to show red if the number is negative.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3001554#M101364</link>
      <description>&lt;P&gt;Power BI Community Good Day!&lt;/P&gt;&lt;P&gt;I am using the following measure in my dashboard as a label.&lt;/P&gt;&lt;P&gt;The number is negative. How can I modify the dax measure below to show red if the number is negative?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Amount Lost = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;metricsrevenuecustomer&lt;/SPAN&gt;&lt;SPAN&gt;[amount]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;metricsrevenuecustomer&lt;/SPAN&gt;&lt;SPAN&gt;[revenue_type_lvl2]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;"Lost"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Much appreciate your time.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:53:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3001554#M101364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-04T16:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify dax measure to show red if the number is negative.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3001927#M101384</link>
      <description>&lt;P&gt;You can use conditional formatting on the visual - see this guide for how to do that:&amp;nbsp;&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;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 21:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3001927#M101384</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-01-04T21:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify dax measure to show red if the number is negative.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3002704#M101438</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;Conditionally formatted measures need to be written separately.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color measure = IF([Amount Lost]&amp;lt;0,"Red")&lt;/LI-CODE&gt;
&lt;P&gt;This is the Card view.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This is the Table view.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&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>Thu, 05 Jan 2023 08:14:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-modify-dax-measure-to-show-red-if-the-number-is-negative/m-p/3002704#M101438</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-01-05T08:14:05Z</dc:date>
    </item>
  </channel>
</rss>

