<?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: Wrong Result in Aggr-Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698930#M673085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is giving Correct Result as there are duplicate Keys in your excel file which is not giving correct results...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="210"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="210"&gt;Sport1417680,573229166666667&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417970,738888888888889&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;ZDF417970,979166666666667&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417970,7875&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,794444444444444&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,78125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,829861111111111&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the First Record, There are two Values Exists...0.13 and 0.05, But your Excel is only Considering 0.13... The same happenning with above all shown Keys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will clear your doubt...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 10:28:10 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-09-03T10:28:10Z</dc:date>
    <item>
      <title>Wrong Result in Aggr-Function</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698929#M673084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem conerning the aggr function. I have a number of keys and over the keys I want to sum the audience.&lt;/P&gt;&lt;P&gt;The problem is that I don't get the exact value in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the right number in Excel:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="65807" alt="Excel.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65807_Excel.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the result in QlikView:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="65808" alt="Qlikview.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/65808_Qlikview.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;The formula I use for calculation is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(Aggr(Sum(Distinct "audience (in mio) 14+ [adults]"), Keys))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that QlikView calculates more values than it should do. But when I do a "Count(Distinct keys)", I get the right number of keys. That's why I'm confused and I can't figure out the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the Excel file and the QlikView file. I hope someone can help me! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 10:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698929#M673084</guid>
      <dc:creator />
      <dc:date>2014-09-03T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Result in Aggr-Function</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698930#M673085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is giving Correct Result as there are duplicate Keys in your excel file which is not giving correct results...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="210"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="210"&gt;Sport1417680,573229166666667&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417970,738888888888889&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;ZDF417970,979166666666667&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417970,7875&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,794444444444444&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,78125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;RTL417980,829861111111111&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the First Record, There are two Values Exists...0.13 and 0.05, But your Excel is only Considering 0.13... The same happenning with above all shown Keys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will clear your doubt...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 10:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698930#M673085</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-03T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Result in Aggr-Function</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698931#M673086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Manish! I would have never figured that out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relieved that the problem lied in the excel data and not within QlikView, Phew! &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;Have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 11:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Result-in-Aggr-Function/m-p/698931#M673086</guid>
      <dc:creator />
      <dc:date>2014-09-03T11:42:54Z</dc:date>
    </item>
  </channel>
</rss>

