<?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: Pie chart with calculated dimension (example file attached) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755090#M506080</link>
    <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Yes - and this solution is something I never expected! I actually thought about using aggr, but it's always nice to learn a new trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 16:36:07 GMT</pubDate>
    <dc:creator>tom2013</dc:creator>
    <dc:date>2020-10-22T16:36:07Z</dc:date>
    <item>
      <title>Pie chart with calculated dimension (example file attached)</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1754976#M506076</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a pie chart, which illustrates how many percent of orders have one or more operations registered beyond expected finish date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For better understanding I have created the table below. Here if all operations are executed before expected finish date, the whole order will be marked as "ontime", otherwise "Delayed".&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression is rather simple:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(max( TOTAL &amp;lt;Order&amp;gt; Operation)&amp;lt;=Expected_Finish,'Ontime','Delayed')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tom2013_0-1603374470852.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42812i256EC42C8ADD3171/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tom2013_0-1603374470852.png" alt="tom2013_0-1603374470852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The results in this table is exactly what I expected, and I wish to show the results in a pie chart (60% orders ontime, 40% orders delayed). But when I set the same expression as calculated dimensions in pie chart, it no longer works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this be possible to realize &lt;STRONG&gt;on front-end&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 13:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1754976#M506076</guid>
      <dc:creator>tom2013</dc:creator>
      <dc:date>2020-10-22T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart with calculated dimension (example file attached)</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755008#M506077</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you want to use the max functions in dimension then you should use the aggr function.&lt;/P&gt;&lt;P&gt;Like below.&lt;/P&gt;&lt;P&gt;Change Dimension expression to.&lt;/P&gt;&lt;P&gt;=Aggr(if(max( TOTAL &amp;lt;Order&amp;gt; Operation)&amp;lt;=Expected_Finish,'Ontime','Delayed'),Order,Expected_Finish,Operation)&lt;/P&gt;&lt;P&gt;And change expression to&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count(Aggr(if(max( TOTAL &amp;lt;Order&amp;gt; Operation)&amp;lt;=Expected_Finish,'Ontime','Delayed'),Order,Expected_Finish,Operation))&lt;/P&gt;&lt;P&gt;Find the attachment.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755008#M506077</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2020-10-22T14:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart with calculated dimension (example file attached)</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755017#M506078</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/63544"&gt;@tom2013&lt;/a&gt;&amp;nbsp; are you looking for ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 632px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42819i18764EA633E9214F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached the QVW file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755017#M506078</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-22T14:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart with calculated dimension (example file attached)</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755085#M506079</link>
      <description>&lt;P&gt;Hi Kaushik,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;Maybe I didn't state the problem clear enough - the desired result in the pie chart is how many "orders" are ontime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the proposed solution you uploaded, the occurence of calculated dimension is counted, not the orders. If you reload the script you will see the ratio in the pie chart is 7:4, not 3:2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to change expression to&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Order)&lt;/P&gt;&lt;P&gt;And it shows 3:2 again. Not sure if I did it in the right way though...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 16:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755085#M506079</guid>
      <dc:creator>tom2013</dc:creator>
      <dc:date>2020-10-22T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart with calculated dimension (example file attached)</title>
      <link>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755090#M506080</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Yes - and this solution is something I never expected! I actually thought about using aggr, but it's always nice to learn a new trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 16:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pie-chart-with-calculated-dimension-example-file-attached/m-p/1755090#M506080</guid>
      <dc:creator>tom2013</dc:creator>
      <dc:date>2020-10-22T16:36:07Z</dc:date>
    </item>
  </channel>
</rss>

