<?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 Aggregations in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310932#M407513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a grain mismatch of your advanced aggregation dimension and your outer chart dimension?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hard to tell with the very few context information provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 22:12:35 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-06-30T22:12:35Z</dc:date>
    <item>
      <title>Wrong Aggregations in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310931#M407512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to SUM units belonging to a property using set analysis. &lt;SPAN style="font-size: 10pt;"&gt;I tried using this expression but it is only showing the result on a single field value with the total being correct:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;NPBegDateOfOperation ={"&amp;lt;$(=Date(vNPrintingDate, 'M/D/YYYY')) &amp;gt;=$(=Date(AddMonths(vNPrintingDate, -1), 'M/D/YYYY'))"}&amp;gt;} aggr(NPTotalUnitCount, NPPropertyKey))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the screenshot of the incorrect expression results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me understand what is going on or how to fix this, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 21:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310931#M407512</guid>
      <dc:creator>alexandergrando</dc:creator>
      <dc:date>2017-06-30T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Aggregations in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310932#M407513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a grain mismatch of your advanced aggregation dimension and your outer chart dimension?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hard to tell with the very few context information provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 22:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310932#M407513</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-30T22:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Aggregations in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310933#M407514</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;Thanks for the reply. I'll give the article a careful read. The funny thing is that I get correct results when I use a slightly different expression (changed fields are in bold):&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;NPBegDateOfOperation ={"&amp;lt;$(=Date(vNPrintingDate, 'M/D/YYYY'))"}, &lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;NPEndDateOfOperation&lt;/STRONG&gt; &lt;STRONG&gt;={"&lt;/STRONG&gt;&amp;gt;=$(=Date(vNPrintingDate-1, 'M/D/YYYY'))"}&amp;gt;} aggr(NPTotalUnitCount, NPPropertyKey))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This leads me to believe that there is another way to write the incorrect expression so that it produces correct results. So that is what I am basically looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 22:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310933#M407514</guid>
      <dc:creator>alexandergrando</dc:creator>
      <dc:date>2017-06-30T22:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Aggregations in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310934#M407515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample app , can't help much&amp;nbsp; without looking at the app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 10:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310934#M407515</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-07-01T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Aggregations in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310935#M407516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your answers. While trying to scramble my fields, I noticed that one of the columns was not scrambling. I suddenly realized that I was using duplicate columns with a different name from another table. That is why the numbers were acting funny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Aggregations-in-Set-Analysis/m-p/1310935#M407516</guid>
      <dc:creator>alexandergrando</dc:creator>
      <dc:date>2017-07-05T17:04:37Z</dc:date>
    </item>
  </channel>
</rss>

