<?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 a pie chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954546#M979594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Just try this if it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Chart properties after you select the Pie chart go to Expression tab -&amp;gt; click on + sign then you can see background property double click and give the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= If(Group = 'R', Red(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Group = 'A', Yellow(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Group = 'G', Green())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try it out, we can change the RGB colors accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 14:05:24 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2015-08-19T14:05:24Z</dc:date>
    <item>
      <title>Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954545#M979592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;R&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;147&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;153&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table similar to above that I want to turn into a pie chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Group column is derived from a calculated dimension that does an if statement on the difference between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Count column is the expression, it's a simple count of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to color the pie chart Red for the R rows, Yellow for the A rows and Green for the G rows but I can't figure out how to do it. Please can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I can't post my worksheet because it contains sensitive data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954545#M979592</guid>
      <dc:creator />
      <dc:date>2015-08-19T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954546#M979594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Just try this if it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Chart properties after you select the Pie chart go to Expression tab -&amp;gt; click on + sign then you can see background property double click and give the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= If(Group = 'R', Red(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Group = 'A', Yellow(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Group = 'G', Green())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try it out, we can change the RGB colors accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 14:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954546#M979594</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-19T14:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954547#M979596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi V,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the calculated dimension a Label of "Group" but when I try to add this in the background color expression QlikView says "bad field name(s): Group".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set the calculated dimension to be called "Group"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954547#M979596</guid>
      <dc:creator />
      <dc:date>2015-08-19T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954548#M979598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;I am not sure if we can do that. Cos it is a calculated dimension right. Can you do this at script level i mean giving the if condition in the script and name it as Group. If not can you send me a screen shot of that if condition you are using??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954548#M979598</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-19T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954549#M979599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do it in the load script but I'm trying to teach myself as much about Qlikview scripting as I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 30, 'G',&lt;/P&gt;&lt;P&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 29 and Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 0, 'A',&lt;/P&gt;&lt;P&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 0, 'R')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I'm comparing a due date against today's date and setting it to either R/A/G depending on how many days ahead or behind schedule it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954549#M979599</guid>
      <dc:creator />
      <dc:date>2015-08-19T15:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954550#M979601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;As it is a calculated dimension, we can use this if statements in the Expression tab Background color but it will be a lot of overhead using multiple if statements. I would suggest to use this if statements in side the script and then use the fields accordingly in the pie chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you are getting data from a table with fields like [Pep due date], PepNumber lets say. The script will be like &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 30, 'G',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 29 and Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 0, 'A',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 0, 'R'))) As Group,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pepnumber&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM &amp;lt;Your table name&amp;gt; ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then use this in the pie chart. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension: Group&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression: Count(PepNumber)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[In the expression click on + sign then in the background color property give the if statement i have sent earlier]. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps. Please let me know if i have not made it clear. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954550#M979601</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-19T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954551#M979603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really appreciate your help. Going a bit off topic here... you've put "FROM &amp;lt;Your table name&amp;gt; ; at the end of your LOAD script. Should this be a temporary table or QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading data from a SQL table into the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My load script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT a.duedate AS 'Pep due date' FROM dbname.dbo.tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do to apply the LOAD script you posted after this to create the Group and Pepnumber fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954551#M979603</guid>
      <dc:creator />
      <dc:date>2015-08-19T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954552#M979605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;Try this and Let me know. Can you tell me the on which field you are using the Count() function to count the rows?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 30, 'G',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 29 and Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 0, 'A',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 0, 'R'))) As Group,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pepnumber ; &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;SQL SELECT a.duedate AS 'Pep due date' FROM dbname.dbo.tablename;&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;// The Pepnumber I have used is my presumption that you have a field coming from SQL.Or is it just duedate coming from the SQL table. &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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let me know.&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks,&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;V&lt;BR /&gt;&lt;BR /&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>Wed, 19 Aug 2015 15:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954552#M979605</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-19T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954553#M979606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no field called Pepnumber coming from the db. Just a field called duedate that I have given the alias "Pep due date" in the load script to make it clearer for users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the expression I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954553#M979606</guid>
      <dc:creator />
      <dc:date>2015-08-19T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954554#M979608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok use this for the count. So try this and let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 30, 'G',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 29 and Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;gt; 0, 'A',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Round(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) &amp;lt;= 0, 'R'))) As Group,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count(date((date([Pep due date], 'DD/MM/YYYY') - date(Now(), 'DD/MM/YYYY')),'DD')) As Count&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SQL SELECT a.duedate AS 'Pep due date' FROM dbname.dbo.tablename;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;And try those fields in the Pie chart. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;V.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 16:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954554#M979608</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-19T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954555#M979610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help - &lt;EM&gt;really&lt;/EM&gt; appreciate it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954555#M979610</guid>
      <dc:creator />
      <dc:date>2015-08-20T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring a pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954556#M979612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark, I am glad it worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coloring-a-pie-chart/m-p/954556#M979612</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2015-08-20T07:54:28Z</dc:date>
    </item>
  </channel>
</rss>

