<?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: expression help for pie chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640462#M1090984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**edit to last sentence of original post**&lt;/P&gt;&lt;P&gt;(I know it will just be a circle right now, but I need the count to come out right when I hover over it.&amp;nbsp; And if I get the right formula for &amp;gt;= goal. I will add a couple more for &amp;gt;0 AND &amp;lt;goal, and one for =0 to make it a 3-slice pie chart by force &lt;SPAN class="emoticon-inline emoticon_happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 19:39:21 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2014-05-20T19:39:21Z</dc:date>
    <item>
      <title>expression help for pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640461#M1090983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a straight table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension=UserId&lt;/P&gt;&lt;P&gt;Label= UserID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression=Sum(steps)&lt;/P&gt;&lt;P&gt;Label=Steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression==if(sum(Steps)&amp;gt;=vStepsGoal, count(Distinct UserId))&lt;/P&gt;&lt;P&gt;Label=Met goal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserId&amp;nbsp;&amp;nbsp;&amp;nbsp; Steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Met Goal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 52000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I enter 50000 in the vStepsGoal inputbox, the above collapses to show and count just the user who met the goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on my pie chart I have this:&lt;/P&gt;&lt;P&gt;Dimension=None (I intend to make 3 expressions counting people by met goal, goal not met, and logged 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression=if(aggr(sum(Steps), UserId)&amp;gt;=vStepsGoal, count(Distinct UserId))&lt;/P&gt;&lt;P&gt;Label=Met goal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result should be a pie chart that updates the count for this expression to reflect # who met goal.&amp;nbsp; Instead it shows everyone until I set the goal up above what everyone logged combined (100001+ in this example), at which point it shows no one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get it to sum the steps per individual, then count the # for whom that sum &amp;gt;= than the goal.&amp;nbsp; Help please, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I know it will just be a circle right now, but I need the count to come out right when I hover over it.&amp;nbsp; And if I get the right formula for &amp;gt;= goal. I will add a couple more for &amp;gt;= AND &amp;lt;goal, and =0 to make it a 3-slice pie chart by force &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 19:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640461#M1090983</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-05-20T19:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: expression help for pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640462#M1090984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;**edit to last sentence of original post**&lt;/P&gt;&lt;P&gt;(I know it will just be a circle right now, but I need the count to come out right when I hover over it.&amp;nbsp; And if I get the right formula for &amp;gt;= goal. I will add a couple more for &amp;gt;0 AND &amp;lt;goal, and one for =0 to make it a 3-slice pie chart by force &lt;SPAN class="emoticon-inline emoticon_happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 19:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640462#M1090984</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-05-20T19:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: expression help for pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640463#M1090985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps&lt;/P&gt;&lt;P&gt;count(distinct if(aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Steps&lt;/SPAN&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserId&lt;/SPAN&gt;)&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vStepsGoal&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserId&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 19:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640463#M1090985</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-20T19:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: expression help for pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640464#M1090986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&amp;nbsp; If anything can be said to be awesome and stink at the same time, it's Qlikview. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'if goal is met, count the people' didn't work, but 'count if goal is met, the people' did work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a country with grammar rules like the latter syntax?&amp;nbsp; Maybe I could learn that language and make qlikview work better? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; I studied German for some years and suppose qlikview could be worse if they arbitrarily made some formulas male and others female.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...actually, I think I understand the turn of logic now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 20:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640464#M1090986</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-05-20T20:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: expression help for pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640465#M1090987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;just for fun another one:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Steps&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&amp;gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: gray;"&gt;vStepsGoal&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;UserId&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;IMG alt="QlikCommunity_Thread_119119_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59252_QlikCommunity_Thread_119119_Pic1.JPG.jpg" style="width: 620px; height: 203px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_119119_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59254_QlikCommunity_Thread_119119_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that adding some of our language specialties could have improved the QlikView syntax.&lt;/P&gt;&lt;P&gt;e.g. all function names would be at least three times as long and the simple and self explaining set expression syntax probably would include characters like ä,ö,ü or ß&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings from Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 23:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-for-pie-chart/m-p/640465#M1090987</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-05-20T23:04:40Z</dc:date>
    </item>
  </channel>
</rss>

