<?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: Expressions with group by into script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802452#M65102</link>
    <description>&lt;P&gt;Since your Group By clauses contain fields that are not included in your Load clauses, you are aggregrating the data a more granular level than the data that is loaded into each table.&amp;nbsp; This will cause you to have multiple rows for each combination of Dimension values in each table.&amp;nbsp; Generally, you will want the fields that are in the Group By clause to be included in the load statement for the table.&lt;/P&gt;&lt;P&gt;Not sure what the requirements are, but I would start by evaluating whether you need to add fields to the Load clause or removed them from the Group By clause.&lt;/P&gt;&lt;P&gt;BTW, you could accomplish any of these aggregation levels via set analysis in chart objects instead of loading them them into pre-aggregated tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Apr 2021 11:15:28 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-04-25T11:15:28Z</dc:date>
    <item>
      <title>Expressions with group by into script</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802412#M65098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to calculate multiple expressions into one load script but when I run this code I get wrong and incoherent data.&lt;/P&gt;&lt;P&gt;Is this the correct syntax?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Total_par_activité:&lt;BR /&gt;Load&lt;BR /&gt;count(Ordre) as TOTAL_JALONS_PAR_ACTIVITE,Code_Activite,Date_Circulation&lt;BR /&gt;Resident TablePrincipale&lt;BR /&gt;group by Date_Circulation,Numero_Sillon,CR_CI_CH,Type_Horaire,Code_Activite;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taux_de_couverture_par_technique_detection:&lt;BR /&gt;LOAD&lt;BR /&gt;count(Ordre) as nombre_de_jalons_couverts_par_technique_detection,Date_Circulation,Technique_Detection&lt;BR /&gt;RESIDENT TablePrincipale&lt;BR /&gt;where Jalon_Couvert=1&lt;BR /&gt;group by Date_Circulation,Numero_Sillon,CR_CI_CH,Type_Horaire,Technique_Detection;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Taux_de_couverture_par_technique_detection_et_source:&lt;BR /&gt;LOAD&lt;BR /&gt;count(Ordre) as nombre_de_jalons_couverts_par_technique_detection_et_source,Date_Circulation,Technique_Detection,Source&lt;BR /&gt;RESIDENT TablePrincipale&lt;BR /&gt;where Jalon_Couvert=1&lt;BR /&gt;group by Date_Circulation,Numero_Sillon,CR_CI_CH,Type_Horaire,Technique_Detection,Source;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802412#M65098</guid>
      <dc:creator>creepingdeath</dc:creator>
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions with group by into script</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802452#M65102</link>
      <description>&lt;P&gt;Since your Group By clauses contain fields that are not included in your Load clauses, you are aggregrating the data a more granular level than the data that is loaded into each table.&amp;nbsp; This will cause you to have multiple rows for each combination of Dimension values in each table.&amp;nbsp; Generally, you will want the fields that are in the Group By clause to be included in the load statement for the table.&lt;/P&gt;&lt;P&gt;Not sure what the requirements are, but I would start by evaluating whether you need to add fields to the Load clause or removed them from the Group By clause.&lt;/P&gt;&lt;P&gt;BTW, you could accomplish any of these aggregation levels via set analysis in chart objects instead of loading them them into pre-aggregated tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 11:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802452#M65102</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-25T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions with group by into script</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802485#M65105</link>
      <description>&lt;P&gt;Thank you for your answer, I have a qvd data file in which my primary key is composed by the following fields "&lt;SPAN&gt;&amp;nbsp;Date_Circulation,Numero_Sillon,CR_CI_CH,Type_Horaire"&amp;nbsp;&lt;/SPAN&gt;I want to calculate many charts with differnet expressions and different group by clauses.&lt;/P&gt;&lt;P&gt;All these expressions were on my charts before but I moved them to the script for performance concerns (when loading 3 month of data Qlikview crashes).&lt;/P&gt;&lt;P&gt;I tested as you mentioned above but it didn't work, Seems that Qlikview was only loading the data from the last load&lt;/P&gt;&lt;P&gt;Is there any other way to do this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802485#M65105</guid>
      <dc:creator>creepingdeath</dc:creator>
      <dc:date>2021-04-26T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions with group by into script</title>
      <link>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802687#M65121</link>
      <description>&lt;P&gt;This is the result when I use Set Analysis instead of load script, It crashes every time I want to change something&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="creepingdeath_1-1619441411821.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53701i36CCE6AECB6EEDA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="creepingdeath_1-1619441411821.png" alt="creepingdeath_1-1619441411821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is what it looks like when I load one month of data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="creepingdeath_0-1619443803910.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53713iEB04112107DAD746/image-size/medium?v=v2&amp;amp;px=400" role="button" title="creepingdeath_0-1619443803910.png" alt="creepingdeath_0-1619443803910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NB: I don't have a Qlikview server I work only on my laptop&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any help please ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expressions-with-group-by-into-script/m-p/1802687#M65121</guid>
      <dc:creator>creepingdeath</dc:creator>
      <dc:date>2021-04-26T13:30:35Z</dc:date>
    </item>
  </channel>
</rss>

