<?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 condition color formatting for a particular line in Matrix tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3823850#M149538</link>
    <description>&lt;P&gt;Hello everyone, I need a urgent help on this I am using 2 measure in a single measure to show with a custom table. I have attched Dax below.&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;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cumulative Revenue Switch = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Performance[Revenues]), &lt;/SPAN&gt;&lt;SPAN&gt;-- Detect the selected row&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"FC"&lt;/SPAN&gt;&lt;SPAN&gt;, [Cumulative FCST], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Actual Revenue"&lt;/SPAN&gt;&lt;SPAN&gt;, [Cumulative Revenue], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() &lt;/SPAN&gt;&lt;SPAN&gt;-- Handle other cases (e.g., when nothing is selected)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need a help based on this measure If [Cumulative Revenue] is less than [Cumulative FCST], show red. If it's greater, show green. However, I need this conditional formatting to apply only to the 'Actual Revenue' line. Currently, I'm using one measure for conditional formatting, but it's being applied to both lines, whereas I only want it for the 'Actual Revenue' line.&lt;BR /&gt;&lt;BR /&gt;below is the measure I am using for conditional formatting&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Color &lt;/SPAN&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;lt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#EFB5B9"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Red color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;gt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#C8F8CD"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Green color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- If [Cumulative Revenue] equals [Cumulative FCST], return BLANK&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Apr 2024 13:23:00 GMT</pubDate>
    <dc:creator>Srinivas904</dc:creator>
    <dc:date>2024-04-09T13:23:00Z</dc:date>
    <item>
      <title>Need condition color formatting for a particular line in Matrix tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3823850#M149538</link>
      <description>&lt;P&gt;Hello everyone, I need a urgent help on this I am using 2 measure in a single measure to show with a custom table. I have attched Dax below.&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;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cumulative Revenue Switch = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Performance[Revenues]), &lt;/SPAN&gt;&lt;SPAN&gt;-- Detect the selected row&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"FC"&lt;/SPAN&gt;&lt;SPAN&gt;, [Cumulative FCST], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Actual Revenue"&lt;/SPAN&gt;&lt;SPAN&gt;, [Cumulative Revenue], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() &lt;/SPAN&gt;&lt;SPAN&gt;-- Handle other cases (e.g., when nothing is selected)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need a help based on this measure If [Cumulative Revenue] is less than [Cumulative FCST], show red. If it's greater, show green. However, I need this conditional formatting to apply only to the 'Actual Revenue' line. Currently, I'm using one measure for conditional formatting, but it's being applied to both lines, whereas I only want it for the 'Actual Revenue' line.&lt;BR /&gt;&lt;BR /&gt;below is the measure I am using for conditional formatting&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Color &lt;/SPAN&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;lt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#EFB5B9"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Red color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;gt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#C8F8CD"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Green color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- If [Cumulative Revenue] equals [Cumulative FCST], return BLANK&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3823850#M149538</guid>
      <dc:creator>Srinivas904</dc:creator>
      <dc:date>2024-04-09T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need condition color formatting for a particular line in Matrix tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3824022#M149542</link>
      <description>&lt;P&gt;create flag variable insted of colour and use that for conditional formating&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3824022#M149542</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-04-09T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need condition color formatting for a particular line in Matrix tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3824055#M149543</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;, Thanks for replying any example please ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:33:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3824055#M149543</guid>
      <dc:creator>Srinivas904</dc:creator>
      <dc:date>2024-04-09T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need condition color formatting for a particular line in Matrix tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3827014#M149632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share sample data to give you the solution. Mean while try below formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;BR /&gt;IF(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Performance[Revenues]="Actual Revenue",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;lt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"#EFB5B9"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Red color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Cumulative Revenue] &amp;gt; [Cumulative FCST],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"#C8F8CD"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- Green color code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-- If [Cumulative Revenue] equals [Cumulative FCST], return BLANK&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;,&lt;BR /&gt;blank()&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Apr 2024 11:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3827014#M149632</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-04-10T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need condition color formatting for a particular line in Matrix tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3861574#M150853</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="643535" data-lia-user-login="Srinivas904" class="lia-mention lia-mention-user"&gt;Srinivas904&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;reply. According to your description, you are using meaure to populate the value of the matrix. however, meaure needs to rely on the context in order to be computed, so trying to do conditional formatting is not possible. conditional fromatting can only work on the entire value value.&lt;BR /&gt;Of course, you can do this by using a table, but you need to create a calculated column.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Albert He&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;EM&gt;&lt;STRONG&gt; helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 08:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-condition-color-formatting-for-a-particular-line-in-Matrix/m-p/3861574#M150853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-23T08:31:51Z</dc:date>
    </item>
  </channel>
</rss>

