<?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: Customizing / Fixing Chart Bar Colors in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407063#M32928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting. I was going to reply that your formulas should work, but then I tried it myself and it seems to work only for when it's a specific value eg xxxx = something 3 not for when xxxx &amp;lt;= 3. Not sure if it has to do with the AGGR or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, try all that that you're doing but use =1 instead of &amp;lt;=3 in both formulas. Not that this is what you want but I'm just trying to confirm if it makes a difference. Please let me know the results with you try with a specific value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the post Vladimir recommended and it works fine but in that example there is no range or aggregate as you have here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 02:42:52 GMT</pubDate>
    <dc:creator>luismadriz</dc:creator>
    <dc:date>2017-12-15T02:42:52Z</dc:date>
    <item>
      <title>Customizing / Fixing Chart Bar Colors</title>
      <link>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407061#M32926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I created a master item (Dimension), where I classify if an activity is (on time) or (out of date). I would like to represent this in a chart, but I would like to choose the green color for the activities that are (within the time limit) and (red) for the activities (out of date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do this by expression, but I could not do that in QlikSense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me tips on how to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex: Master Item (Dimension):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15132716113065406" jivemacro_uid="_15132716113065406"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=If(Floor(Aggr(Num((Today() - Max(data_ocorrida))/30),cod_conta)) &amp;lt;= 3,'1 - RELAC. EM DIA','2 - NECES. RELAC.')&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex: Appearance&amp;gt; Presentation&amp;gt; Colors and Caption (By Expression):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I tried to do this in the expression but the two bars are red.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It did not work out as I would have liked.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15132717105234333 jive_text_macro" jivemacro_uid="_15132717105234333"&gt;
&lt;P&gt;If(Floor(Aggr(Num((Today() - Max(data_ocorrida))/30),cod_conta)) &amp;lt;= 3,Green(), Red())&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;IMG alt="QlikSenseGrafico.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187018_QlikSenseGrafico.png" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected outcome:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikSenseGrafico.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/187031_QlikSenseGrafico.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a beginner and thank you for the attention and help from everyone.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Hugs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 17:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407061#M32926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing / Fixing Chart Bar Colors</title>
      <link>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407062#M32927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8492"&gt;Qlik Sense: How to set custom colors by measure in a bar chart&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 01:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407062#M32927</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-12-15T01:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing / Fixing Chart Bar Colors</title>
      <link>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407063#M32928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting. I was going to reply that your formulas should work, but then I tried it myself and it seems to work only for when it's a specific value eg xxxx = something 3 not for when xxxx &amp;lt;= 3. Not sure if it has to do with the AGGR or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, try all that that you're doing but use =1 instead of &amp;lt;=3 in both formulas. Not that this is what you want but I'm just trying to confirm if it makes a difference. Please let me know the results with you try with a specific value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the post Vladimir recommended and it works fine but in that example there is no range or aggregate as you have here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 02:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Customizing-Fixing-Chart-Bar-Colors/m-p/1407063#M32928</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-15T02:42:52Z</dc:date>
    </item>
  </channel>
</rss>

