<?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: Multiple level aggregation in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-level-aggregation-in-script/m-p/1762449#M591547</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22739"&gt;@renjithpl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1605675169477.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44339i57C0E0BCB9694859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1605675169477.png" alt="MayilVahanan_0-1605675169477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, dim1, dim2, dim3, value1, value2&lt;BR /&gt;1, a, tt, ooo, 10, 50&lt;BR /&gt;1, a, xx, ppp, 20, 30&lt;BR /&gt;2, b, yy, qqq, 5, 20&lt;BR /&gt;2, b, zz, rrr, 3, 10&lt;BR /&gt;2, c, pp, sss, 8, 40&lt;BR /&gt;3, d, qq, ttt, 9, 90&lt;BR /&gt;4, e, rr, uuu, 5, 100&lt;BR /&gt;5, f, ll, vvv, 12, 80&lt;BR /&gt;];&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD ID, dim1, dim2, dim3,ID&amp;amp;'-'&amp;amp;dim1 as Key,&lt;BR /&gt;sum(value1) as value1,&lt;BR /&gt;sum(value2) as value2&lt;BR /&gt;Resident test&lt;BR /&gt;Group by ID, dim1, dim2, dim3;&lt;/P&gt;&lt;P&gt;Join&lt;BR /&gt;LOAD Key,&lt;BR /&gt;FirstValue(dim2) as dim2,&lt;BR /&gt;FirstValue(dim3) as dim3,&lt;BR /&gt;sum(value1) as value1aggr&lt;BR /&gt;Resident Table1&lt;BR /&gt;group by Key;&lt;BR /&gt;drop table test;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 04:53:17 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2020-11-18T04:53:17Z</dc:date>
    <item>
      <title>Multiple level aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-level-aggregation-in-script/m-p/1762343#M591546</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;I have an aggregated value based on ID and dim1, In the front end it works fine, but I want to get this in the script level like below code.&lt;/P&gt;&lt;P&gt;can I get same like in the first table using script level coding. ?&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik.PNG" style="width: 430px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44307i91D5EA73DDAED9C5/image-dimensions/430x293?v=v2" width="430" height="293" role="button" title="qlik.PNG" alt="qlik.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;test:&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; * &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;INLINE&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;[&lt;BR /&gt;ID, dim1, dim2, dim3, value1, value2&lt;BR /&gt;1, a, tt, ooo, 10, 50&lt;BR /&gt;1, a, xx, ppp, 20, 30&lt;BR /&gt;2, b, yy, qqq, 5, 20&lt;BR /&gt;2, b, zz, rrr, 3, 10&lt;BR /&gt;2, c, pp, sss, 8, 40&lt;BR /&gt;3, d, qq, ttt, 9, 90&lt;BR /&gt;4, e, rr, uuu, 5, 100&lt;BR /&gt;5, f, ll, vvv, 12, 80&lt;BR /&gt;]&lt;/FONT&gt;&lt;FONT size="1"&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;NoConcatenate&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;Table1:&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim1&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim2&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim3&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;value1&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;value1&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;value2&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;value2&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Resident&lt;/FONT&gt;&lt;FONT size="1"&gt; test&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Group&lt;/FONT&gt; &lt;FONT size="1" color="#0000ff"&gt;by&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim1&lt;/FONT&gt;&lt;FONT size="1"&gt;,&amp;nbsp; &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim2&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim3&lt;/FONT&gt;&lt;FONT size="1"&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;left&lt;/FONT&gt; &lt;FONT size="1" color="#0000ff"&gt;join&lt;/FONT&gt;&lt;FONT size="1"&gt;(Table1)&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;,&amp;nbsp; &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim1&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;value1&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;value1aggr&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Resident&lt;/FONT&gt;&lt;FONT size="1"&gt; test&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;group&lt;/FONT&gt; &lt;FONT size="1" color="#0000ff"&gt;by&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;ID&lt;/FONT&gt;&lt;FONT size="1"&gt;, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;dim1&lt;/FONT&gt;&lt;FONT size="1"&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="1" color="#0000ff"&gt;drop&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="1" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT size="1"&gt; test; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-level-aggregation-in-script/m-p/1762343#M591546</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2024-11-15T23:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple level aggregation in script</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-level-aggregation-in-script/m-p/1762449#M591547</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22739"&gt;@renjithpl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1605675169477.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44339i57C0E0BCB9694859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1605675169477.png" alt="MayilVahanan_0-1605675169477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, dim1, dim2, dim3, value1, value2&lt;BR /&gt;1, a, tt, ooo, 10, 50&lt;BR /&gt;1, a, xx, ppp, 20, 30&lt;BR /&gt;2, b, yy, qqq, 5, 20&lt;BR /&gt;2, b, zz, rrr, 3, 10&lt;BR /&gt;2, c, pp, sss, 8, 40&lt;BR /&gt;3, d, qq, ttt, 9, 90&lt;BR /&gt;4, e, rr, uuu, 5, 100&lt;BR /&gt;5, f, ll, vvv, 12, 80&lt;BR /&gt;];&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD ID, dim1, dim2, dim3,ID&amp;amp;'-'&amp;amp;dim1 as Key,&lt;BR /&gt;sum(value1) as value1,&lt;BR /&gt;sum(value2) as value2&lt;BR /&gt;Resident test&lt;BR /&gt;Group by ID, dim1, dim2, dim3;&lt;/P&gt;&lt;P&gt;Join&lt;BR /&gt;LOAD Key,&lt;BR /&gt;FirstValue(dim2) as dim2,&lt;BR /&gt;FirstValue(dim3) as dim3,&lt;BR /&gt;sum(value1) as value1aggr&lt;BR /&gt;Resident Table1&lt;BR /&gt;group by Key;&lt;BR /&gt;drop table test;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 04:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-level-aggregation-in-script/m-p/1762449#M591547</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-18T04:53:17Z</dc:date>
    </item>
  </channel>
</rss>

