<?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 Dynamic colors based on a dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-colors-based-on-a-dimension/m-p/2538198#M108916</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I have a barchart with Fiscal year as the dimension and I got an expression&lt;BR /&gt;the fiscal years in the data are the following :&lt;BR /&gt;FY.23, FY.24, FY.25, and FyY.26 for actuals and&amp;nbsp;FY.23, FY.24, FY.25, FyY.26, FY.27 for budget and forecast&lt;BR /&gt;I want to color the bars gradually from Fy.23 as dark gray, then this color would be brigther for Fy.24, brigher for FY.25 than Fy.24 but Green for Fy.26 (this for the actuals)&lt;BR /&gt;while for budget I want the same for 23,24, and 25, and finally Fy26, and 27 are both colored green&lt;BR /&gt;&lt;BR /&gt;Kindly advise on how to accomplish this knowing that next year we'll have data for FY.28 and thus FY.27, and FY.28 would be green&lt;BR /&gt;is this feasible?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2025 19:46:07 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2025-12-04T19:46:07Z</dc:date>
    <item>
      <title>Dynamic colors based on a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-colors-based-on-a-dimension/m-p/2538198#M108916</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have a barchart with Fiscal year as the dimension and I got an expression&lt;BR /&gt;the fiscal years in the data are the following :&lt;BR /&gt;FY.23, FY.24, FY.25, and FyY.26 for actuals and&amp;nbsp;FY.23, FY.24, FY.25, FyY.26, FY.27 for budget and forecast&lt;BR /&gt;I want to color the bars gradually from Fy.23 as dark gray, then this color would be brigther for Fy.24, brigher for FY.25 than Fy.24 but Green for Fy.26 (this for the actuals)&lt;BR /&gt;while for budget I want the same for 23,24, and 25, and finally Fy26, and 27 are both colored green&lt;BR /&gt;&lt;BR /&gt;Kindly advise on how to accomplish this knowing that next year we'll have data for FY.28 and thus FY.27, and FY.28 would be green&lt;BR /&gt;is this feasible?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 19:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-colors-based-on-a-dimension/m-p/2538198#M108916</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-12-04T19:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic colors based on a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-colors-based-on-a-dimension/m-p/2538250#M108922</link>
      <description>&lt;P&gt;managed to do it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1764924392599.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185514i23770DB4DD9EE562/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1764924392599.png" alt="ali_hijazi_0-1764924392599.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used the ColorMix function which takes 3 paramters&lt;BR /&gt;param1 is a number between 0 and 1 and I put it as the (fiscal_year - min(fiscal year)) / max(fiscal_year)-min(fiscal_year)&lt;BR /&gt;param2: is the color when value is 0 which is RGB(211,211,211)&lt;BR /&gt;param3: is the color when value is 1 which is in my case I chose red RGB(237,41,100)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 08:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-colors-based-on-a-dimension/m-p/2538250#M108922</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-12-05T08:49:19Z</dc:date>
    </item>
  </channel>
</rss>

