<?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 Data manipulation during load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211254#M877372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do some data manipulation during the loading procedure and do not quite know how. I have a table such as the below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 377px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="88"&gt;CustomerId&lt;/TD&gt;&lt;TD class="xl63" width="88"&gt;Sales&lt;/TD&gt;&lt;TD class="xl65" width="113"&gt;Aggregated_Sales&lt;/TD&gt;&lt;TD class="xl63" width="88"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;10&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;16.67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;20&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;33.33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;30&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;50.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;5&lt;/TD&gt;&lt;TD class="xl65"&gt;13&lt;/TD&gt;&lt;TD class="xl64"&gt;38.46%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;8&lt;/TD&gt;&lt;TD class="xl65"&gt;13&lt;/TD&gt;&lt;TD class="xl64"&gt;61.54%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;3&lt;/TD&gt;&lt;TD class="xl63"&gt;21&lt;/TD&gt;&lt;TD class="xl65"&gt;21&lt;/TD&gt;&lt;TD class="xl64"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate the Aggregated_Sales entries during the load procedure when given the CustomerId and Sales data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Data manipulation during load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211254#M877372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do some data manipulation during the loading procedure and do not quite know how. I have a table such as the below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 377px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="88"&gt;CustomerId&lt;/TD&gt;&lt;TD class="xl63" width="88"&gt;Sales&lt;/TD&gt;&lt;TD class="xl65" width="113"&gt;Aggregated_Sales&lt;/TD&gt;&lt;TD class="xl63" width="88"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;10&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;16.67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;20&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;33.33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;30&lt;/TD&gt;&lt;TD class="xl65"&gt;60&lt;/TD&gt;&lt;TD class="xl64"&gt;50.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;5&lt;/TD&gt;&lt;TD class="xl65"&gt;13&lt;/TD&gt;&lt;TD class="xl64"&gt;38.46%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl63"&gt;8&lt;/TD&gt;&lt;TD class="xl65"&gt;13&lt;/TD&gt;&lt;TD class="xl64"&gt;61.54%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;3&lt;/TD&gt;&lt;TD class="xl63"&gt;21&lt;/TD&gt;&lt;TD class="xl65"&gt;21&lt;/TD&gt;&lt;TD class="xl64"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate the Aggregated_Sales entries during the load procedure when given the CustomerId and Sales data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211254#M877372</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data manipulation during load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211255#M877373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;load CustomerId, Sales from YourTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join&lt;/P&gt;&lt;P&gt;Load CustomerId, sum(Sales) as Aggregated_Sales resident table1 group by CustomerId;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;load *, Sales / Aggregated_Sales as % resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 13:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211255#M877373</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-22T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data manipulation during load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211256#M877374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to do this in the script, you can come up with this on the front end if you want using this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;CustomerId&amp;gt; Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for doing this in the script, you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CustomerId,&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; Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CustomerId,&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; Sum(Sales) as Aggregated_Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By CustomerId;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 14:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211256#M877374</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-22T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data manipulation during load</title>
      <link>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211257#M877375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the total in the user interface (chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for aggregated sales (by customer)&lt;/P&gt;&lt;P&gt;Sum(total &amp;lt;CustomerId&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for %&lt;/P&gt;&lt;P&gt;Sum(Sales) / Sum(total &amp;lt;CustomerId&amp;gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 14:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-manipulation-during-load/m-p/1211257#M877375</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-10-22T14:38:04Z</dc:date>
    </item>
  </channel>
</rss>

