<?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: Different colors for Bars in combo chart with a conditional check on dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1570056#M41571</link>
    <description>&lt;P&gt;I suspect that there are several Invoice dates per bar. If so, your expression&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([Invoice date]&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;will be interpreted as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Only([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp; which is the same as&amp;nbsp; if(NULL&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I suggest you ask yourself what the condition should be if there is more than one date in the bar: Should you compare '10/17/2018' with the largest date in the group? Or perhaps the smallest? Once you have answered that, you'll know which of the following to use:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Max([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Min([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;See also&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Good luck&lt;/P&gt;
&lt;P&gt;HIC&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 14:52:24 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2019-04-16T14:52:24Z</dc:date>
    <item>
      <title>Different colors for Bars in combo chart with a conditional check on dates</title>
      <link>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1568896#M41497</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In my app I am trying to compare my field [Invoice Date] with a string&amp;nbsp; like this('10/17/2017') in the Appearance-Color and Legend ( custom color, color by expression ,expression as color is selected ) for a combo chart.&lt;/P&gt;&lt;P&gt;if([Invoice date]&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do see a color change for bar (which has Dimension----[Invoice date.autocalender.MonthYear]). But when i do incremental load for some inserted records, those records on the bar does not show colors according to the condition. Inserted dates are greater than the static mentioned date(10/17/2018).&lt;/P&gt;&lt;P&gt;If I add [Invoice Date] as a field in table and check&amp;nbsp;if([Invoice date]&amp;gt;='10/17/2018','green','blue')&amp;nbsp; for text color, my dates are appearing&amp;nbsp; in proper color (all the dates greater than 10/17/2017 are in green text color ).&lt;/P&gt;&lt;P&gt;Any help with this is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1568896#M41497</guid>
      <dc:creator>shraddha6369</dc:creator>
      <dc:date>2019-04-12T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Different colors for Bars in combo chart with a conditional check on dates</title>
      <link>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1570056#M41571</link>
      <description>&lt;P&gt;I suspect that there are several Invoice dates per bar. If so, your expression&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([Invoice date]&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;will be interpreted as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Only([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp; which is the same as&amp;nbsp; if(NULL&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I suggest you ask yourself what the condition should be if there is more than one date in the bar: Should you compare '10/17/2018' with the largest date in the group? Or perhaps the smallest? Once you have answered that, you'll know which of the following to use:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Max([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Min([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;See also&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Good luck&lt;/P&gt;
&lt;P&gt;HIC&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 14:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1570056#M41571</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2019-04-16T14:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Different colors for Bars in combo chart with a conditional check on dates</title>
      <link>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1570106#M41578</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your quick response to this. Just had a doubt why the same condition is giving proper results&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I suspect that there are several Invoice dates per bar. If so, your expression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if([Invoice date]&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will be interpreted as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Only([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp; which is the same as&amp;nbsp; if(NULL&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suggest you ask yourself what the condition should be if there is more than one date in the bar: Should you compare '10/17/2018' with the largest date in the group? Or perhaps the smallest? Once you have answered that, you'll know which of the following to use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Max([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Min([Invoice date])&amp;gt;='10/17/2018','green','blue')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See also&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;in table ? but it did solve my problem in bar chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 17:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-colors-for-Bars-in-combo-chart-with-a-conditional/m-p/1570106#M41578</guid>
      <dc:creator>shraddha6369</dc:creator>
      <dc:date>2019-04-16T17:18:47Z</dc:date>
    </item>
  </channel>
</rss>

