<?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: Add conditional formatting to series chart in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4994785#M13055</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/775507"&gt;@RaquelAlba&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conditional formatting on &lt;STRONG&gt;series&lt;/STRONG&gt; in Power BI and Fabric charts does &lt;STRONG&gt;not work reliably&lt;/STRONG&gt; because series colors are metadata, not row-level data. Static colors per series always work, but conditional rules applied to series &lt;STRONG&gt;do not persist&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Official Microsoft documentation:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A title="Conditional formatting in Power BI visuals" href="https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-conditional-formatting?utm_" target="_self"&gt;Conditional formatting in Power BI visuals&lt;/A&gt;&amp;nbsp;explains that conditional formatting is evaluated per data point or category, not per series.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Recommended Workaround: Measure-Driven Coloring&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Create a measure that outputs a color per data point:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SeriesColor =
SWITCH(
    TRUE(),
    [Value] &amp;gt;= 100, "#00B050",   // green
    [Value] &amp;gt;= 50,  "#FFC000",   // amber
    "#C00000"                     // red
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your chart:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Go to &lt;STRONG&gt;Data colors → Conditional formatting → Field value&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Select the measure SeriesColor&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This gives dynamic coloring per data point and effectively replicates per-series conditional formatting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2026 10:28:40 GMT</pubDate>
    <dc:creator>Olufemi7</dc:creator>
    <dc:date>2026-02-04T10:28:40Z</dc:date>
    <item>
      <title>Add conditional formatting to series chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4603266#M12268</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am trying to add &lt;STRONG&gt;conditional formatting&lt;/STRONG&gt; to a custom &lt;STRONG&gt;series&lt;/STRONG&gt; chart.&lt;BR /&gt;I know that in the documentation it says the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"&lt;SPAN&gt;&lt;EM&gt;We recommend that you don’t use conditional formatting with series. Instead, you should allow customers to format each series individually, making it easy to visually distinguish between series. Most out-of-the-box visuals with series, share this approach.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fact that it says that it is not recommended means that it is possible but still I don't know how to make it work.&amp;nbsp;&lt;BR /&gt;The color picker works fine, so when one of the grouped values (series) is full color formatted it works but when I try to use the conditional rules the same way it doesn't work. It doesn't even get saved inside the grouped values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I'm not sure about how to approach this. I tried to link it to the categorical column instead of the series but in that case it doesn't work either (not even the single colour picker), so that's worse I think. I still try to make it work linking it to the grouped values but don't know how to do so and make the conditional rules work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me with that?&lt;BR /&gt;Thank you in advance for the helping hand!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 11:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4603266#M12268</guid>
      <dc:creator>RaquelAlba</dc:creator>
      <dc:date>2025-03-10T11:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add conditional formatting to series chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4886401#M12943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/775507"&gt;@RaquelAlba&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iam not sure about your assumption that if the docs say "it is not recommended" that this feature is acutally present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, what is the reason you choose a custom visual instead of one of the core visuals? Which functionality is missing or which feature do you want to implement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4886401#M12943</guid>
      <dc:creator>Mauro89</dc:creator>
      <dc:date>2025-11-26T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add conditional formatting to series chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4994785#M13055</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/775507"&gt;@RaquelAlba&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conditional formatting on &lt;STRONG&gt;series&lt;/STRONG&gt; in Power BI and Fabric charts does &lt;STRONG&gt;not work reliably&lt;/STRONG&gt; because series colors are metadata, not row-level data. Static colors per series always work, but conditional rules applied to series &lt;STRONG&gt;do not persist&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Official Microsoft documentation:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A title="Conditional formatting in Power BI visuals" href="https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-conditional-formatting?utm_" target="_self"&gt;Conditional formatting in Power BI visuals&lt;/A&gt;&amp;nbsp;explains that conditional formatting is evaluated per data point or category, not per series.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Recommended Workaround: Measure-Driven Coloring&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Create a measure that outputs a color per data point:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SeriesColor =
SWITCH(
    TRUE(),
    [Value] &amp;gt;= 100, "#00B050",   // green
    [Value] &amp;gt;= 50,  "#FFC000",   // amber
    "#C00000"                     // red
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your chart:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Go to &lt;STRONG&gt;Data colors → Conditional formatting → Field value&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Select the measure SeriesColor&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This gives dynamic coloring per data point and effectively replicates per-series conditional formatting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 10:28:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Add-conditional-formatting-to-series-chart/m-p/4994785#M13055</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2026-02-04T10:28:40Z</dc:date>
    </item>
  </channel>
</rss>

