<?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: Help required in the aggregation. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892349#M310724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I have already tried that but it didn't work. Not sure what is going wrong!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buy the way what join should I be using so that existing granularity of the data doesn't change. Please help with sample load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 13:18:45 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2015-06-24T13:18:45Z</dc:date>
    <item>
      <title>Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892347#M310722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Due to come difficulties in the we have below piece of code (to do the aggregation) which connects to the FACT and we are using SALES_AMT in the expression. Since it is creating addition table in the data model we would like to remove this changes in the DM and we would like to this aggregation in the expression itself(So that we can use 'SALES' in the expression with required aggregation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; PERIOD&amp;amp;'-'&amp;amp;CUS_ID&amp;amp;'-'&amp;amp;LEVEL as KEY_CUS_LINK,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(SALES) as SALES_AMT&lt;/P&gt;&lt;P&gt;Resident FACT&lt;/P&gt;&lt;P&gt;group by PERIOD&amp;amp;'-'&amp;amp;CUS_ID&amp;amp;'-'&amp;amp;LEVEL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really sure how to achieve this. Can someone help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892347#M310722</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-06-24T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892348#M310723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly you don't really have to leave this as a separate table and can join it back to your FACT Table because doing it in script would be much more efficient then using a Aggr function on the front end. Having Said that you can use the following formula in the front end I guess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum/Max/Min/Count&lt;STRONG&gt;(Aggr(Sum(Sales). PERIOD, CUS_ID, LEVEL))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892348#M310723</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-24T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892349#M310724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I have already tried that but it didn't work. Not sure what is going wrong!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buy the way what join should I be using so that existing granularity of the data doesn't change. Please help with sample load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892349#M310724</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-06-24T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892350#M310725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually to make sure you don't multiply the number of rows, you can probably use Mapping rather than using a left join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FACT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD PERIOD&amp;amp;'-'&amp;amp;CUS_ID&amp;amp;'-'&amp;amp;LEVEL as KEY_CUS_LINK, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM somewhere;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MappingTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&amp;nbsp; KEY_CUS_LINK,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(SALES) as SALES_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident FACT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;group by KEY_CUS_LINK;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FINALFACT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MappingTable', KEY_CUS_LINK) as SALES_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident FACT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DROP Table FACT; &lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892350#M310725</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-24T13:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892351#M310726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks I will try that and update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way if I had to left join you want me to do something like below right? Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT: (Orginal FACT table)&lt;/P&gt;&lt;P&gt;Load * From anyhere;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; PERIOD&amp;amp;'-'&amp;amp;CUS_ID&amp;amp;'-'&amp;amp;LEVEL as KEY_CUS_LINK,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(SALES) as SALES_AMT&lt;/P&gt;&lt;P&gt;Resident FACT&lt;/P&gt;&lt;P&gt;group by PERIOD&amp;amp;'-'&amp;amp;CUS_ID&amp;amp;'-'&amp;amp;LEVEL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892351#M310726</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-06-24T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892352#M310727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FACT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load * From anyhere;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&amp;nbsp; PERIOD,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUS_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEVEL ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(SALES) as SALES_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident FACT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;group by PERIOD, CUS_ID, LEVEL;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892352#M310727</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-24T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892353#M310728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks it would have been great if we can achieve this in the UI since we are already doing in the back end. Anyway will try the above and will let you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892353#M310728</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2015-06-24T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help required in the aggregation.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892354#M310729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-the-aggregation/m-p/892354#M310729</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-24T14:33:58Z</dc:date>
    </item>
  </channel>
</rss>

