<?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 Why my Aggregation values are so high  for simple expression like sum(sales) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455405#M698297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This might be dumb question .......but i'm struggling to find a answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my script i'm doing a group by (for a range of dates using a for loop for every week) with respect to my primary key and i see all aggregated values for a given key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but when i select a single key(primary key values my and gave expression like sum(sales ) ina text box..the values are very high ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody throw some light on how group by and aggregation work in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here i'm attaching my application and data file to get an overview of what i'm doing ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not sure whether it's right way to use a for loop and follwed by groupby ..plz throw some light on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and guide me with your valuable suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 16:15:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-20T16:15:42Z</dc:date>
    <item>
      <title>Why my Aggregation values are so high  for simple expression like sum(sales)</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455405#M698297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This might be dumb question .......but i'm struggling to find a answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my script i'm doing a group by (for a range of dates using a for loop for every week) with respect to my primary key and i see all aggregated values for a given key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but when i select a single key(primary key values my and gave expression like sum(sales ) ina text box..the values are very high ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody throw some light on how group by and aggregation work in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here i'm attaching my application and data file to get an overview of what i'm doing ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not sure whether it's right way to use a for loop and follwed by groupby ..plz throw some light on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and guide me with your valuable suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 16:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455405#M698297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T16:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Aggregation values are so high  for simple expression like sum(sales)</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455406#M698298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i just got a partial answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for table Main2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where i did groupby with respect to 1 dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values are matching by changing the expression as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(sumgallon)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is not working for another table i.e Main table where &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used groupby with respect to three dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get an average for three dimension (grouped value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 17:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455406#M698298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Aggregation values are so high  for simple expression like sum(sales)</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455407#M698299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a very large number of duplicate records in your tables. Add a straight table with all the fields of table Main and as expression count(%Key). You probably need to take another good look at how you create your tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 17:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455407#M698299</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-20T17:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Aggregation values are so high  for simple expression like sum(sales)</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455408#M698300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks fro reply and your are exactly correct..i'm having so many duplicate values ..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initallly i'm not aware of this .... can we please suggest .....how to remove this duplicate values ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not that good at scripting qlikview &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 17:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455408#M698300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T17:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why my Aggregation values are so high  for simple expression like sum(sales)</title>
      <link>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455409#M698301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, for your response ..i have been struggling to get a correct answer fro 2 week .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your reponse i came to know the right spot to look at .......great help ..reallly appricate it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now it's working fine ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i stored the table into a qvd and again used distinct for key field ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all my values are uniques and working fine for expression sum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-my-Aggregation-values-are-so-high-for-simple-expression-like/m-p/455409#M698301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T18:21:31Z</dc:date>
    </item>
  </channel>
</rss>

