<?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 on matrix visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4880723#M12921</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a common limitation in Power BI. When all values are in a single column (like KPI Value), conditional formatting cannot directly differentiate metrics because Power BI applies formatting on the aggregated value of the column, not per category inside it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solutions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create separate Measures for each Metric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., Sales KPI, Profit KPI…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add them to the Values section → now conditional formatting can be applied per Measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use a Field Value Measure for formatting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a DAX Measure that returns a color code based on the Metric and KPI value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apply conditional formatting → Background Color → Field Value → choose this measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either approach allows you to conditionally format per metric in a Matrix even when all values come from a s&lt;/P&gt;&lt;P&gt;ingle backend column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 07:52:13 GMT</pubDate>
    <dc:creator>Nabha-Ahmed</dc:creator>
    <dc:date>2025-11-20T07:52:13Z</dc:date>
    <item>
      <title>Conditional formatting on matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4873295#M12913</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-12 at 7.37.28 PM.png" style="width: 505px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1309329i81A36E9E0ECF100E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-11-12 at 7.37.28 PM.png" alt="Screenshot 2025-11-12 at 7.37.28 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the data i have suppose i creating a matrix now , rows : Group, Metric &amp;nbsp;.... Column : Account ,,,,values :kpi value , this table is created in bi now issue is i am not able to do conditional formatting on any metric level coz all values coming from kpi value column frombackend . I tried it with simple matrix with backend tableand one with customized table in BI .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4873295#M12913</guid>
      <dc:creator>Nidhi09031992</dc:creator>
      <dc:date>2025-11-12T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4873417#M12914</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1362952"&gt;@Nidhi09031992&lt;/a&gt;&amp;nbsp;A bit hard to decipher the issue you are having. You can create a measure that returns a text color code like "#FF00FF" for example that is based on whatever logic you desire within the DAX code. For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Color =
VAR _Metric = SELECTEDVALUE( 'Table'[Metric] )
VAR _Value = SELECTEDVALUE( 'Table'[Value] )
VAR _Return
  SWITCH( TRUE(),
    AND( _Metric = "Gap", _Value &amp;gt; 1000 ), "#FF0000",
    AND( _Metric = "Gap", _Value &amp;lt; 1000 ), "#00FF00",
    AND( _Metric = "Total order", _Value &amp;gt; 3000 ), "00FF00",
    "FFFFFF"
  )
RETURN _Return&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Nov 2025 15:48:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4873417#M12914</guid>
      <dc:creator>GeraldGEmerick</dc:creator>
      <dc:date>2025-11-12T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4880723#M12921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a common limitation in Power BI. When all values are in a single column (like KPI Value), conditional formatting cannot directly differentiate metrics because Power BI applies formatting on the aggregated value of the column, not per category inside it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solutions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create separate Measures for each Metric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., Sales KPI, Profit KPI…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add them to the Values section → now conditional formatting can be applied per Measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use a Field Value Measure for formatting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a DAX Measure that returns a color code based on the Metric and KPI value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apply conditional formatting → Background Color → Field Value → choose this measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either approach allows you to conditionally format per metric in a Matrix even when all values come from a s&lt;/P&gt;&lt;P&gt;ingle backend column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 07:52:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4880723#M12921</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-20T07:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting on matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4904151#M13004</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1362952"&gt;@Nidhi09031992&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The reason you can’t apply conditional formatting at the &lt;STRONG&gt;metric level&lt;/STRONG&gt; in your matrix is because all values (Target, Actual, Gap, etc.) are stored in a single &lt;EM&gt;KPI value&lt;/EM&gt; column. Power BI treats them as one field, so formatting rules can only be applied to the field as a whole, not to individual metrics.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;Workarounds:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Create separate measures for each metric&lt;/STRONG&gt; using DAX, for example:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="markup"&gt;TargetOrder = CALCULATE(SUM('Table'[KPI Value]), 'Table'[Metric] = "Target order")
TotalOrder = CALCULATE(SUM('Table'[KPI Value]), 'Table'[Metric] = "Total order")
GapOrder   = CALCULATE(SUM('Table'[KPI Value]), 'Table'[Metric] = "Gap")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Reshape the data&lt;/STRONG&gt; so each metric is a separate column (Target Order, Total Order, Gap, etc.). This makes conditional formatting straightforward since each column is independent.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Advanced option:&lt;/STRONG&gt; Use &lt;STRONG&gt;Calculation Groups&lt;/STRONG&gt; in Tabular Editor to dynamically switch metrics while controlling formatting logic.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Supporting Microsoft Documentation&lt;BR /&gt;&lt;A title="Apply Conditional Table Formatting in Power BI" href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_self"&gt;Apply Conditional Table Formatting in Power BI&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;“Conditional formatting is only available for values in tables and matrices, not for columns or rows in a matrix.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A title="Matrix Visual Format Settings  " href="https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-matrix-visual-format-settings" target="_self"&gt;Matrix Visual Format Settings &lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Explains customization options for matrix visuals and confirms that formatting applies to values, not row labels.&lt;BR /&gt;&lt;BR /&gt;with the current “single KPI column” setup, conditional formatting per metric isn’t possible.&lt;BR /&gt;&lt;BR /&gt;You’ll need either &lt;STRONG&gt;separate measures&lt;/STRONG&gt; or a &lt;STRONG&gt;pivoted data structure&lt;/STRONG&gt; to unlock metric‑level formatting.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 17 Dec 2025 16:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Conditional-formatting-on-matrix-visual/m-p/4904151#M13004</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2025-12-17T16:28:55Z</dc:date>
    </item>
  </channel>
</rss>

