<?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: Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load/m-p/960141#M329586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;StartSite:&lt;/P&gt;&lt;P&gt;SELECT * FROM TARGETTABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load the count using a resident load and do not concatenate the result to the main table(if it is your requirement)&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(Column1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Column1Count&lt;/P&gt;&lt;P&gt;Resident StartSite&lt;/P&gt;&lt;P&gt;group by Column1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//finally drop the main table(if it is your requirement)&lt;/P&gt;&lt;P&gt;drop table StartSite;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 13:50:20 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-09-29T13:50:20Z</dc:date>
    <item>
      <title>Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960137#M329582</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;In the script i have next:&lt;/P&gt;&lt;P&gt;StartSite:&lt;/P&gt;&lt;P&gt;SELECT * FROM TARGETTABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P&gt;In the script i want a new select statement that selects all results from Startsite with e.g. group by&lt;/P&gt;&lt;P&gt;GroupStartSite:&lt;/P&gt;&lt;P&gt;SELECT ColumnA, count(*) FROM &amp;lt;&amp;lt;StartSite&amp;gt;&amp;gt; GROUP BY ColumnA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i define a new select statement based on source earlier select statement in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960137#M329582</guid>
      <dc:creator />
      <dc:date>2015-09-29T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960138#M329583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use &lt;STRONG&gt;resident &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;StartSite &lt;/STRONG&gt; instead of FROM, it will do the needful, also we use load instead&amp;nbsp; of SELECT while loading from QV tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960138#M329583</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-29T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960139#M329584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&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;GroupStartSite:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ColumnA, count(ColumnA) as Count&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT StartSite&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY ColumnA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960139#M329584</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960140#M329585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColumnA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(ColumnA)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Cnt&lt;/P&gt;&lt;P&gt;Resident StartSite&lt;/P&gt;&lt;P&gt;group by ColumnA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960140#M329585</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-09-29T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960141#M329586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;StartSite:&lt;/P&gt;&lt;P&gt;SELECT * FROM TARGETTABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load the count using a resident load and do not concatenate the result to the main table(if it is your requirement)&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(Column1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As Column1Count&lt;/P&gt;&lt;P&gt;Resident StartSite&lt;/P&gt;&lt;P&gt;group by Column1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//finally drop the main table(if it is your requirement)&lt;/P&gt;&lt;P&gt;drop table StartSite;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960141#M329586</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-29T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960142#M329587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't really have to extract from database again. Since you've loaded the data into QlikView you have all the fields (*) in StartSite table and what you can do is extract fields that you want from StartSite table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use RESIDENT function&lt;/P&gt;&lt;P&gt;As suggested be &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&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;GroupStartSite:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ColumnA, count(ColumnA) as Count&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&lt;/STRONG&gt; StartSite&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY ColumnA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960142#M329587</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-09-29T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960143#M329588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andreas, I have issue with your initial statement. When performing an aggregation in script I think it is bad practice to do a "Select *" (select everything). How would you know what fields to group by? Every field not aggregated is required to be in the Group By statement so you need to know &lt;SPAN style="text-decoration: underline;"&gt;all&lt;/SPAN&gt; the field names in the table/view.&lt;/P&gt;&lt;P&gt;V/r,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960143#M329588</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2015-09-29T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960144#M329589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while I agree you might not want to do a load * from the underlying DB. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;"Every field not aggregated is required to be in the Group By statement"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't quite right in the QV group by, you don't put in all the fields, just those you want to aggregate by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960144#M329589</guid>
      <dc:creator />
      <dc:date>2015-09-29T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960145#M329590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe, thanks for agreeing with part of it anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stand corrected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960145#M329590</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2015-09-29T15:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960146#M329591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no worries glad to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960146#M329591</guid>
      <dc:creator />
      <dc:date>2015-09-29T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960147#M329592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, it's confused me more. I can't seem to find an example that doesn't group all unaggregated fields in a query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960147#M329592</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2015-10-05T16:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960148#M329593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attached, the base data has 4 dimensions and you can see different grouped up tables created from this. Each table needs the fields to aggregate by included in the group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 08:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960148#M329593</guid>
      <dc:creator />
      <dc:date>2015-10-06T08:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960149#M329594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JoeSimmons,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain what is happening behind the script. I just want to understand Group by statement here.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101070_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 09:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960149#M329594</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-10-06T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960150#M329595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this was me trying to show an example of entering all the underlying dimensions in the group by, still with a limited load of dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code will group by all 4 fields and create you a row for each aggregated entry (based on the 4). as you only have a single field in the load statement, you will see on the output multiple entries for each value in FieldA.&lt;/P&gt;&lt;P&gt;If however you only have the FieldA in the group by, you'll get a single row for each value.&lt;/P&gt;&lt;P&gt;I was just trying to show the difference in output between those two really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 09:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960150#M329595</guid>
      <dc:creator />
      <dc:date>2015-10-06T09:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960151#M329596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was going to say your examples were exactly what I was saying until I looked closely at the last one. I get the first ones, but I'm still stumped why someone may want to do the last one. Thanks for confusing me more. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V/r,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960151#M329596</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2015-10-06T15:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load</title>
      <link>https://community.qlik.com/t5/QlikView/Load/m-p/960152#M329597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not saying you would &lt;EM&gt;want&lt;/EM&gt; to the last one, if you only have the one field loading you have extra rows for not much reason. &lt;/P&gt;&lt;P&gt;I was just trying to show what &lt;EM&gt;would&lt;/EM&gt; happen if you include all the fields in the group by in that example,&amp;nbsp; just to illustrate you may not want all fields in your group by &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;Hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load/m-p/960152#M329597</guid>
      <dc:creator />
      <dc:date>2015-10-06T15:50:48Z</dc:date>
    </item>
  </channel>
</rss>

