<?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 SUM + IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681731#M475028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a big problem with calculating a percentage of the two marked columns. I would like to show the percentage in a Text Box but since the column on the right side is calculate with an if clause, QlikView won't let me do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column "Zielererichung" looks as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, sum(tt_anwesend), 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column "Anwesend" is just: sum(tt_anwesend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a text box and try to calculate the percentage:&lt;/P&gt;&lt;P&gt;=num(100 / (sum(if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, sum(tt_anwesend), 0))) / sum(tt_anwesend))&lt;/P&gt;&lt;P&gt;I get the message:&lt;/P&gt;&lt;P&gt;Error: nested aggregation not allowed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TKE.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64447_TKE.jpg" style="width: 620px; height: 161px;" /&gt;&lt;/P&gt;&lt;P&gt;I can not get the total fro "Zielerreichung" from the script, the result does not match with what I get in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea's&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 13:44:08 GMT</pubDate>
    <dc:creator>catunoho</dc:creator>
    <dc:date>2014-08-14T13:44:08Z</dc:date>
    <item>
      <title>SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681731#M475028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a big problem with calculating a percentage of the two marked columns. I would like to show the percentage in a Text Box but since the column on the right side is calculate with an if clause, QlikView won't let me do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column "Zielererichung" looks as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, sum(tt_anwesend), 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column "Anwesend" is just: sum(tt_anwesend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a text box and try to calculate the percentage:&lt;/P&gt;&lt;P&gt;=num(100 / (sum(if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, sum(tt_anwesend), 0))) / sum(tt_anwesend))&lt;/P&gt;&lt;P&gt;I get the message:&lt;/P&gt;&lt;P&gt;Error: nested aggregation not allowed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TKE.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/64447_TKE.jpg" style="width: 620px; height: 161px;" /&gt;&lt;/P&gt;&lt;P&gt;I can not get the total fro "Zielerreichung" from the script, the result does not match with what I get in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea's&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681731#M475028</guid>
      <dc:creator>catunoho</dc:creator>
      <dc:date>2014-08-14T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681732#M475029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can maybe try:&lt;/P&gt;&lt;P&gt;= Num(100/&amp;nbsp; Sum(if(Sum(tt_reck)/sum(TKE_Wert) &amp;gt;=1, tt_anwesend,0))&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp; Sum(tt_anwesend) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAn you attach a sample file if it doens't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681732#M475029</guid>
      <dc:creator />
      <dc:date>2014-08-14T14:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681733#M475030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry did not help. Here is the sample file... hope the german description are not a problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 06:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681733#M475030</guid>
      <dc:creator>catunoho</dc:creator>
      <dc:date>2014-08-15T06:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681734#M475031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, tt_anwesend, 0) AS Zielerreichung&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in chart you directly use =Sum(Zielerreichung) and check whether values are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 08:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681734#M475031</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-15T08:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681735#M475032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you validate the below formula in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num((sum(aggr(if((sum(tt_rueck) / sum(TKE_Wert)) &amp;gt;= 1, sum(tt_anwesend), 0), Bereich, Team, Benennung)) / sum(total tt_anwesend)),'#.##0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 08:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681735#M475032</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-08-15T08:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681736#M475033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried this before but I get different (wrong) values if I use the if clause in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681736#M475033</guid>
      <dc:creator>catunoho</dc:creator>
      <dc:date>2014-08-15T10:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: SUM + IF</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681737#M475034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's it...works perfect !!! Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF/m-p/681737#M475034</guid>
      <dc:creator>catunoho</dc:creator>
      <dc:date>2014-08-15T10:16:09Z</dc:date>
    </item>
  </channel>
</rss>

