<?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 Chart color by expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-color-by-expression-help/m-p/1330627#M825979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, having an issue here. For some reason, Qlik Sense Cloud is in GMT time and I have to convert it to retrieve the correct data after 7pm. I have fixed that issue. Just now I can't use color by expressions for some reason with the new expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-1" height="155" src="https://community.qlik.com/legacyfs/online/170631_Capture3.PNG" style="width: 366px; height: 155.07px;" width="366" /&gt;&lt;/P&gt;&lt;P&gt;expression = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(Today()-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression by color = =if($(vAttend) &amp;lt; 0.95, 'rgb(204, 0, 0)', 'rgb(68,119,170)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable not defined in script&lt;/P&gt;&lt;P&gt;vAttend = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(Today()-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what doesn't work&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" height="179" src="https://community.qlik.com/legacyfs/online/170632_Capture2.PNG" style="width: 334px; height: 178.72px;" width="334" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(ConvertToLocalTime(Date(now()), 'GMT-05:00')-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression by color = =if($(vAttend) &amp;lt; 0.95, 'rgb(204, 0, 0)', 'rgb(68,119,170)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable not defined in script&lt;/P&gt;&lt;P&gt;vAttend = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(ConvertToLocalTime(Date(now()-1), 'GMT-05:00'),1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>joshrussin</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Chart color by expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-color-by-expression-help/m-p/1330627#M825979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, having an issue here. For some reason, Qlik Sense Cloud is in GMT time and I have to convert it to retrieve the correct data after 7pm. I have fixed that issue. Just now I can't use color by expressions for some reason with the new expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-1" height="155" src="https://community.qlik.com/legacyfs/online/170631_Capture3.PNG" style="width: 366px; height: 155.07px;" width="366" /&gt;&lt;/P&gt;&lt;P&gt;expression = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(Today()-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression by color = =if($(vAttend) &amp;lt; 0.95, 'rgb(204, 0, 0)', 'rgb(68,119,170)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable not defined in script&lt;/P&gt;&lt;P&gt;vAttend = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(Today()-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what doesn't work&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" height="179" src="https://community.qlik.com/legacyfs/online/170632_Capture2.PNG" style="width: 334px; height: 178.72px;" width="334" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(ConvertToLocalTime(Date(now()), 'GMT-05:00')-1,1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression by color = =if($(vAttend) &amp;lt; 0.95, 'rgb(204, 0, 0)', 'rgb(68,119,170)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable not defined in script&lt;/P&gt;&lt;P&gt;vAttend = Sum({$&amp;lt;Date_Emp={"$(=FirstWorkDate(ConvertToLocalTime(Date(now()-1), 'GMT-05:00'),1,$(vHolidays)))"}&amp;gt;} (Actual_Emp / FTE_Emp))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-color-by-expression-help/m-p/1330627#M825979</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

