<?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: Different colors at total rows - metrix visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4260010#M168815</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;yes, please come check this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Different-background-color-for-subtotal/td-p/2131275" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Different-background-color-for-subtotal/td-p/2131275&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Apply-different-background-colors-to-different-row-subtotals-in/td-p/3688580" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Apply-different-background-colors-to-different-row-subtotals-in/td-p/3688580&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2024 06:58:15 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2024-10-28T06:58:15Z</dc:date>
    <item>
      <title>Different colors at total rows - metrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4259996#M168814</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have a metrix visual with several totals (below pic) which currently all grey, I want for each total level a different color and I tried it under "Rows subtotals" -- &amp;gt; choose a level but than my "values" is blocked (pic attached), any ideas ?&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;</description>
      <pubDate>Mon, 28 Oct 2024 06:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4259996#M168814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-28T06:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Different colors at total rows - metrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4260010#M168815</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;yes, please come check this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Different-background-color-for-subtotal/td-p/2131275" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Different-background-color-for-subtotal/td-p/2131275&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Apply-different-background-colors-to-different-row-subtotals-in/td-p/3688580" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Apply-different-background-colors-to-different-row-subtotals-in/td-p/3688580&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:58:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4260010#M168815</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-10-28T06:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Different colors at total rows - metrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4261380#M168890</link>
      <description>&lt;P&gt;Hi&amp;nbsp;FreemanZ,&amp;nbsp;thanks for the quick reply, I'll add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please use the 'ISINSCOPE' function to determine the row level. Then work with the conditional format to set the color.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/isinscope-function-dax" target="_blank"&gt;ISINSCOPE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank"&gt;Apply conditional table formatting in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _level1 = ISINSCOPE('Table'[level1])
VAR _level2 = ISINSCOPE('Table'[level2])
VAR _level3 = ISINSCOPE('Table'[level3])
RETURN 
SWITCH(TRUE(),
_level3 = FALSE() &amp;amp;&amp;amp; _level2 = TRUE(),"red",
_level2 = FALSE() &amp;amp;&amp;amp; _level1 = TRUE(),"green",
"Yellow"
)&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 02:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-colors-at-total-rows-metrix-visual/m-p/4261380#M168890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-29T02:28:34Z</dc:date>
    </item>
  </channel>
</rss>

