<?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 count with an integrated condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942594#M77657</link>
    <description>&lt;P&gt;Add a Calculated Dimension as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= AGGR( if(sum(order_cost)&amp;gt;7000,'target customer'
,if(sum(order_cost)&amp;gt;3000,'on the border' ,'not targeted' ) ) , user_id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add Measure as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=count(distinct user_id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 04:30:43 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-06-13T04:30:43Z</dc:date>
    <item>
      <title>pie chart with count with an integrated condition</title>
      <link>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942362#M77622</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I need a slightly complicated chart. I want to build a pie chart with count with an integrated condition instead of a field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My condition is:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;if orders_sum is more than 7000, then 'target customer', if more than 3000 then 'on the border', otherwise 'not targeted'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Further, based on this condition, i want the pie chart to show the number of customers for each of the resulting categories: target, on the border, not targeted. I know that it is possible to load field in the script, but this is not the best option for our data, so i would like to build this by calculations in the chart.&lt;/P&gt;
&lt;P&gt;So I need something like &lt;FONT face="courier new,courier"&gt;&lt;FONT color="#3366FF"&gt;aggr( count( &amp;lt;{sum(order_cost)={&amp;gt;7000} }&amp;gt; user_id), user_id)&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;but all the options i've tried give an error or null&lt;/P&gt;
&lt;P&gt;Thanks for any tips!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 20:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942362#M77622</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-06-10T20:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart with count with an integrated condition</title>
      <link>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942393#M77623</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163370"&gt;@ZimaBlue&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Why don't you create a master dimension which you can use in your pie chart?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 21:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942393#M77623</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2022-06-10T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart with count with an integrated condition</title>
      <link>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942594#M77657</link>
      <description>&lt;P&gt;Add a Calculated Dimension as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= AGGR( if(sum(order_cost)&amp;gt;7000,'target customer'
,if(sum(order_cost)&amp;gt;3000,'on the border' ,'not targeted' ) ) , user_id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add Measure as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=count(distinct user_id)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 04:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/pie-chart-with-count-with-an-integrated-condition/m-p/1942594#M77657</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-06-13T04:30:43Z</dc:date>
    </item>
  </channel>
</rss>

