<?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 Color Pie chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Color-Pie-chart/m-p/1758155#M58549</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a problem with pie chart color&amp;nbsp; and the property : Color (by Expression)&lt;/P&gt;&lt;P&gt;I have my Dimension:&lt;/P&gt;&lt;P&gt;=if([BLN.Baseline_Number]=1,&lt;/P&gt;&lt;P&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])=round([PRJ.Finish_Date]-[PRJ.Start_Date]) and date([BLN.Start_Date],'DD/MM/YYYY')&amp;lt;&amp;gt;date([PRJ.Start_Date],'DD/MM/YYYY'),'Décalage', if(round([BLN.Finish_Date]-[BLN.Start_Date])&amp;lt;&amp;gt;round([PRJ.Finish_Date]-[PRJ.Start_Date]),'En retard'))&lt;BR /&gt;,'Planning respecté')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure: (who count the number of project)&lt;/P&gt;&lt;P&gt;=count( {&amp;lt;[PRJ.Statut]={'Non commencé', 'En cours'}&amp;gt;} [PRJ.ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ther property Color: by Expression&lt;/P&gt;&lt;P&gt;I put exactly the same formula as my dimension but with rgb color codes.&lt;/P&gt;&lt;P&gt;=if([BLN.Baseline_Number]=1,&lt;/P&gt;&lt;P&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])=round([PRJ.Finish_Date]-[PRJ.Start_Date]) and date([BLN.Start_Date],'DD/MM/YYYY')&amp;lt;&amp;gt;date([PRJ.Start_Date],'DD/MM/YYYY'), RGB(255, 255, 0),&lt;BR /&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])&amp;lt;&amp;gt;round([PRJ.Finish_Date]-[PRJ.Start_Date]),RGB(249,63,23)))&amp;nbsp;&lt;BR /&gt;,RGB(70, 198, 70))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it seems my expression doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pieChart.PNG" style="width: 443px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43432iA7E9C6B54F8A8489/image-size/large?v=v2&amp;amp;px=999" role="button" title="pieChart.PNG" alt="pieChart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
    <dc:creator>Maya</dc:creator>
    <dc:date>2021-12-20T21:08:46Z</dc:date>
    <item>
      <title>Color Pie chart</title>
      <link>https://community.qlik.com/t5/App-Development/Color-Pie-chart/m-p/1758155#M58549</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a problem with pie chart color&amp;nbsp; and the property : Color (by Expression)&lt;/P&gt;&lt;P&gt;I have my Dimension:&lt;/P&gt;&lt;P&gt;=if([BLN.Baseline_Number]=1,&lt;/P&gt;&lt;P&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])=round([PRJ.Finish_Date]-[PRJ.Start_Date]) and date([BLN.Start_Date],'DD/MM/YYYY')&amp;lt;&amp;gt;date([PRJ.Start_Date],'DD/MM/YYYY'),'Décalage', if(round([BLN.Finish_Date]-[BLN.Start_Date])&amp;lt;&amp;gt;round([PRJ.Finish_Date]-[PRJ.Start_Date]),'En retard'))&lt;BR /&gt;,'Planning respecté')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure: (who count the number of project)&lt;/P&gt;&lt;P&gt;=count( {&amp;lt;[PRJ.Statut]={'Non commencé', 'En cours'}&amp;gt;} [PRJ.ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ther property Color: by Expression&lt;/P&gt;&lt;P&gt;I put exactly the same formula as my dimension but with rgb color codes.&lt;/P&gt;&lt;P&gt;=if([BLN.Baseline_Number]=1,&lt;/P&gt;&lt;P&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])=round([PRJ.Finish_Date]-[PRJ.Start_Date]) and date([BLN.Start_Date],'DD/MM/YYYY')&amp;lt;&amp;gt;date([PRJ.Start_Date],'DD/MM/YYYY'), RGB(255, 255, 0),&lt;BR /&gt;if(round([BLN.Finish_Date]-[BLN.Start_Date])&amp;lt;&amp;gt;round([PRJ.Finish_Date]-[PRJ.Start_Date]),RGB(249,63,23)))&amp;nbsp;&lt;BR /&gt;,RGB(70, 198, 70))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it seems my expression doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pieChart.PNG" style="width: 443px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43432iA7E9C6B54F8A8489/image-size/large?v=v2&amp;amp;px=999" role="button" title="pieChart.PNG" alt="pieChart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Color-Pie-chart/m-p/1758155#M58549</guid>
      <dc:creator>Maya</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
  </channel>
</rss>

