<?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: create area chart with green and red colors to indicate profit and loss in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/2972718#M99433</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486493" data-lia-user-login="lawada4" class="lia-mention lia-mention-user"&gt;lawada4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share some sample data so that we could test the formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 07:29:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-16T07:29:57Z</dc:date>
    <item>
      <title>create area chart with green and red colors to indicate profit and loss</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/2970895#M99275</link>
      <description>&lt;P&gt;I have created area chart that that shows profit and loss % over time. I would like to show the loss (negative part) in red color and the profit ( positive part) in geen color.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created 2 measures one for profit % and one for loss %&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;positive p&amp;amp;l = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &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lt;/SPAN&gt;&lt;SPAN&gt;pl&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i added the measures in the chart it looked&amp;nbsp; like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea on how to create the area chart with green/red colors instead of 1 color&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 13:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/2970895#M99275</guid>
      <dc:creator>lawada4</dc:creator>
      <dc:date>2022-12-15T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: create area chart with green and red colors to indicate profit and loss</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/2972718#M99433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486493" data-lia-user-login="lawada4" class="lia-mention lia-mention-user"&gt;lawada4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share some sample data so that we could test the formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 07:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/2972718#M99433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-16T07:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: create area chart with green and red colors to indicate profit and loss</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/4137958#M164371</link>
      <description>&lt;P&gt;Could you solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 15:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-area-chart-with-green-and-red-colors-to-indicate-profit/m-p/4137958#M164371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-06T15:29:56Z</dc:date>
    </item>
  </channel>
</rss>

