<?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 Threshold colors in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231041#M82820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would suggest the way to achieve this is to split your expression into three and produce a stacked bar chart.&lt;/P&gt;&lt;P&gt;First expression would be something like:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)/10&amp;gt;0.1,0.1,Sum(ServiceIncome)/Sum(ServiceSaleAmt))&lt;/P&gt;&lt;P&gt;Background colour for this would be red, the idea of this is to limit the bar size to 10% if it is above 10%.&lt;/P&gt;&lt;P&gt;Second expression would be:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)/10&amp;gt;0.2,0.1,IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)&amp;gt;0.1,Sum(ServiceIncome)/Sum(ServiceSaleAmt)-0.1,0)))&lt;/P&gt;&lt;P&gt;Background colour would be Yellow, the idea again is to limit the bar size to 10% when the total is above 20% and when its between 10% &amp;amp; 20% then just give the difference otherwise it should be zero, when stacked this should appear on top of the Red segment.&lt;/P&gt;&lt;P&gt;Third expression should be:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)&amp;gt;0.2,Sum(ServiceIncome)/Sum(ServiceSaleAmt)-0.2,0)&lt;/P&gt;&lt;P&gt;Background colour should be green, it should only produce a value if the total is above 20% and then it should be the value over 20% (hence the -0.2 at the end).&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 18:12:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-04T18:12:39Z</dc:date>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231037#M82816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-569_sourceID:569" /&gt;&lt;/P&gt;&lt;P&gt;I want to create a threshold level for the operating margin which is color coded. For example, i want the area of the bar below 5% to be red in color and the area in between 5% and 15% to be another color and everything above 15% in another color.&lt;/P&gt;&lt;P&gt;Please give the steps i need to follow and the codes i need to enter to accomplish this task as im quite new to QlikView&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 12:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231037#M82816</guid>
      <dc:creator />
      <dc:date>2009-11-04T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231038#M82817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here are the next one.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 16:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231038#M82817</guid>
      <dc:creator />
      <dc:date>2009-11-04T16:26:34Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231039#M82818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0508.untitled.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0508.untitled.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now my graph looks like this. The code i used was&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;if(sum(serviceincome)/sum(servicesaleamt)/10&amp;gt;0.2,Green(),if(sum(serviceincome)/sum(servicesaleamt)/10&amp;lt;0.1,Red(),Yellow()))&lt;/P&gt;&lt;P&gt;i typed this out in the Expression&amp;gt;Background color input field.&lt;/P&gt;&lt;P&gt;But i would like only the part of the bar above and below the threshold limit to be colored and not the entire bar.&lt;/P&gt;&lt;P&gt;Any idea on how this can be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 16:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231039#M82818</guid>
      <dc:creator />
      <dc:date>2009-11-04T16:47:44Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231040#M82819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;unfortunately not.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231040#M82819</guid>
      <dc:creator />
      <dc:date>2009-11-04T18:06:05Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231041#M82820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would suggest the way to achieve this is to split your expression into three and produce a stacked bar chart.&lt;/P&gt;&lt;P&gt;First expression would be something like:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)/10&amp;gt;0.1,0.1,Sum(ServiceIncome)/Sum(ServiceSaleAmt))&lt;/P&gt;&lt;P&gt;Background colour for this would be red, the idea of this is to limit the bar size to 10% if it is above 10%.&lt;/P&gt;&lt;P&gt;Second expression would be:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)/10&amp;gt;0.2,0.1,IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)&amp;gt;0.1,Sum(ServiceIncome)/Sum(ServiceSaleAmt)-0.1,0)))&lt;/P&gt;&lt;P&gt;Background colour would be Yellow, the idea again is to limit the bar size to 10% when the total is above 20% and when its between 10% &amp;amp; 20% then just give the difference otherwise it should be zero, when stacked this should appear on top of the Red segment.&lt;/P&gt;&lt;P&gt;Third expression should be:&lt;/P&gt;&lt;P&gt;=IF(Sum(ServiceIncome)/Sum(ServiceSaleAmt)&amp;gt;0.2,Sum(ServiceIncome)/Sum(ServiceSaleAmt)-0.2,0)&lt;/P&gt;&lt;P&gt;Background colour should be green, it should only produce a value if the total is above 20% and then it should be the value over 20% (hence the -0.2 at the end).&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 18:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231041#M82820</guid>
      <dc:creator />
      <dc:date>2009-11-04T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231042#M82821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;That was good thinking. However, i seem to have gotten better results when i used these expressions&lt;/P&gt;&lt;P&gt;=IF(Sum(serviceincome)/Sum(servicesaleamt)/10&amp;lt;0.1,Sum(serviceincome)/Sum(servicesaleamt)/10,0.1)&lt;/P&gt;&lt;P&gt;=IF(Sum(serviceincome)/Sum(servicesaleamt)/10&amp;gt;0.1,IF(Sum(serviceincome)/Sum(servicesaleamt)&amp;lt;0.2,Sum(serviceincome)/Sum(servicesaleamt)-0.1,0.1),0)&lt;/P&gt;&lt;P&gt;=IF(Sum(serviceincome)/Sum(servicesaleamt)/10&amp;gt;0.2,IF(Sum(serviceincome)/Sum(servicesaleamt)&amp;lt;0.3,Sum(serviceincome)/Sum(servicesaleamt)-0.2,0.1),0)&lt;/P&gt;&lt;P&gt;And so on...&lt;/P&gt;&lt;P&gt;Let me know if there is anything wrong in the above expressions.&lt;/P&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 20:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231042#M82821</guid>
      <dc:creator />
      <dc:date>2009-11-04T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Threshold colors</title>
      <link>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231043#M82822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Looks good to me, good job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Threshold-colors/m-p/231043#M82822</guid>
      <dc:creator />
      <dc:date>2009-11-04T21:19:56Z</dc:date>
    </item>
  </channel>
</rss>

