<?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: Group by function in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882266#M658996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is clearer. And is it possible to add a column with variables and not text. For example, feel the new columns with values of a row in the datasource?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 09:34:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-22T09:34:17Z</dc:date>
    <item>
      <title>Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882259#M658989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a simple script to get used to group by function, however, the script didn't run. Here is a screen shot of the script and the error message. &lt;BR /&gt;Can anyone tell me what is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all !&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84304_1.PNG" style="height: auto;" /&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/84305_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882259#M658989</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882260#M658990</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;Try like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Achat,&lt;/P&gt;&lt;P&gt;Produit,&lt;/P&gt;&lt;P&gt;prix,&lt;/P&gt;&lt;P&gt;debut,&lt;/P&gt;&lt;P&gt;fin&lt;/P&gt;&lt;P&gt;from C:\....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Achat,&lt;/P&gt;&lt;P&gt;avg(prix) as Avgprix&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Group By Achat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882260#M658990</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2015-04-22T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882261#M658991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the second LOAD, you need to change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; avg(prix) &lt;STRONG&gt;to&lt;/STRONG&gt; avg(prix) as prix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882261#M658991</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-22T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882262#M658992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use a Group by funcion on the script, you have to "group by" every field but the one with the agregation function. That's why &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ASHFAQ creates a second table where he only groups by Achat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882262#M658992</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-22T09:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882263#M658993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;It seems that it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yasser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882263#M658993</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882264#M658994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, so every field in a load with group by needs to be associatate to an agregation function? Is that correct.&lt;BR /&gt;Also how to add numerous columns in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882264#M658994</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882265#M658995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example in your first table if you want to add a column where you want to write the word 'sales'in a field called transaction_type, you do someting like 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: #000000;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Achat,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Produit,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;prix,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;debut,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;fin,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;EM&gt;'sales' as transaction_type&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;from C:\....;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;so you can add columns with new expressions giving them names&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882265#M658995</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-22T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882266#M658996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is clearer. And is it possible to add a column with variables and not text. For example, feel the new columns with values of a row in the datasource?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882266#M658996</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882267#M658997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use variables and field names from your data source. Imagine you want a new column which have a string chain that has your field produit and prix&lt;/P&gt;&lt;P&gt;you can add to your load statement: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Produit&amp;amp;' - '&amp;amp;prix as produit_prix&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then, if you have a produit called champoo with a prix 0.99, your chain will look like &lt;EM&gt;champoo - 0.99&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882267#M658997</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-22T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882268#M658998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does, really thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually what I am trying to do is the the explained in the picture:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84308_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to do so with pivot table. How ever, because I need to draw charts with the tables having only one line per purchase ID, I don't know how to figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yasser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882268#M658998</guid>
      <dc:creator />
      <dc:date>2015-04-22T09:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882269#M658999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did this, but it works if you know a maximum number of products on each purchase&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882269#M658999</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-22T11:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882270#M659000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 12:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882270#M659000</guid>
      <dc:creator />
      <dc:date>2015-04-22T12:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882271#M659001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can mark some of my answers as "useful" if you wish &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 07:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882271#M659001</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-23T07:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group by function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882272#M659002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Achat,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Produit,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;prix,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;debut,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fin&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from C:\....;&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;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Achat,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Produit,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;prix,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;debut,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fin&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;avg(prix) as Avgprix&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By Achat,prodit,prix,debut,fin;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 09:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-function-in-script/m-p/882272#M659002</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-04-23T09:41:29Z</dc:date>
    </item>
  </channel>
</rss>

