<?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 Help with Background color property in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-Background-color-property/m-p/1825619#M67861</link>
    <description>&lt;P&gt;I have a line chart to show market share by year using 2 dimensions - year and Supplier&lt;/P&gt;&lt;P&gt;My expression to show the lines seems unnecessarily complicated for what you would think is a simple task and I wonder if it is creating the problem with my Background Color preventing it from working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={"&amp;gt;=$(=AddYears(Max(Year),-1)) &amp;lt;=2020"}&amp;gt;} Volume)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;gt;=$(=AddYears(Max(Year),-1)) &amp;lt;=2020"}&amp;gt;} total &amp;lt;Year&amp;gt; Volume)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression i use for background color is:&lt;/P&gt;&lt;P&gt;if(SupplierParentID=1, RGB(34,134,39),&lt;BR /&gt;if(SupplierParentID=730, RGB(230,25,75),&lt;BR /&gt;if(SupplierParentID=59, RGB(255,225,25),&lt;BR /&gt;if(SupplierParentID=607, RGB(0,130,200),&lt;BR /&gt;if(SupplierParentID=826, RGB(245,130,48),&lt;BR /&gt;if(SupplierParentID=859, RGB(170,110,40),&lt;BR /&gt;if(SupplierParentID=897, RGB(240,50,230),&lt;BR /&gt;if(SupplierParentID=320, RGB(128,0,0),&lt;BR /&gt;if(SupplierParentID=322, RGB(70,240,240),&lt;BR /&gt;RGB(128,128,128),&lt;BR /&gt;)))))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the field Year has nothing selected, the color of each line and the legend appears correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT, if a given year is selected, say 2019 then the portion of the line in the chart between 2019 and 2020 is correctly displayed with the appropriate color.&amp;nbsp; If the user selects all the years, all the lines appear as intended&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The legend however, ONLY displays the correct color if no year or all years are selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 19:45:51 GMT</pubDate>
    <dc:creator>tomdabek</dc:creator>
    <dc:date>2021-07-29T19:45:51Z</dc:date>
    <item>
      <title>Help with Background color property</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-Background-color-property/m-p/1825619#M67861</link>
      <description>&lt;P&gt;I have a line chart to show market share by year using 2 dimensions - year and Supplier&lt;/P&gt;&lt;P&gt;My expression to show the lines seems unnecessarily complicated for what you would think is a simple task and I wonder if it is creating the problem with my Background Color preventing it from working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={"&amp;gt;=$(=AddYears(Max(Year),-1)) &amp;lt;=2020"}&amp;gt;} Volume)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt;Year={"&amp;gt;=$(=AddYears(Max(Year),-1)) &amp;lt;=2020"}&amp;gt;} total &amp;lt;Year&amp;gt; Volume)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression i use for background color is:&lt;/P&gt;&lt;P&gt;if(SupplierParentID=1, RGB(34,134,39),&lt;BR /&gt;if(SupplierParentID=730, RGB(230,25,75),&lt;BR /&gt;if(SupplierParentID=59, RGB(255,225,25),&lt;BR /&gt;if(SupplierParentID=607, RGB(0,130,200),&lt;BR /&gt;if(SupplierParentID=826, RGB(245,130,48),&lt;BR /&gt;if(SupplierParentID=859, RGB(170,110,40),&lt;BR /&gt;if(SupplierParentID=897, RGB(240,50,230),&lt;BR /&gt;if(SupplierParentID=320, RGB(128,0,0),&lt;BR /&gt;if(SupplierParentID=322, RGB(70,240,240),&lt;BR /&gt;RGB(128,128,128),&lt;BR /&gt;)))))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the field Year has nothing selected, the color of each line and the legend appears correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT, if a given year is selected, say 2019 then the portion of the line in the chart between 2019 and 2020 is correctly displayed with the appropriate color.&amp;nbsp; If the user selects all the years, all the lines appear as intended&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The legend however, ONLY displays the correct color if no year or all years are selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 19:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-Background-color-property/m-p/1825619#M67861</guid>
      <dc:creator>tomdabek</dc:creator>
      <dc:date>2021-07-29T19:45:51Z</dc:date>
    </item>
  </channel>
</rss>

