<?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: Coloring by expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352603#M823672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that worked, but I also had to put a parenthesis around the entire vAttend equation for some reason. Qlik is very sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 14:51:29 GMT</pubDate>
    <dc:creator>joshrussin</dc:creator>
    <dc:date>2017-07-21T14:51:29Z</dc:date>
    <item>
      <title>Coloring by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352601#M823670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bar graph and when the percentage is over 95% the color should be blue, and if it is under 95% it should be red. &lt;/P&gt;&lt;P&gt;It has been working until I figured out I need to convert the time zone. &lt;/P&gt;&lt;P&gt;I created a variable to get yesterdays percentage called "vAttend"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula that has been working:&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;when I try to convert to a different time zone, it doesn't work&lt;/P&gt;&lt;P&gt;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;Here is the expression for the colors I am using.&lt;/P&gt;&lt;P&gt;=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;&lt;/P&gt;&lt;P&gt;Any ideas how to fix?&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/Coloring-by-expression/m-p/1352601#M823670</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352602#M823671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Remove Quotes, that should work&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if($(vAttend) &amp;lt; 0.95, rgb(204, 0, 0), rgb(68,119,170))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352602#M823671</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2017-07-21T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352603#M823672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that worked, but I also had to put a parenthesis around the entire vAttend equation for some reason. Qlik is very sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 14:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-by-expression/m-p/1352603#M823672</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-07-21T14:51:29Z</dc:date>
    </item>
  </channel>
</rss>

