<?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: Preceding Load &amp; Resident Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322349#M840212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Resident Load:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It allows you to create a new logical table using qlikview based on existing table (which loaded in memory)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TabeA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load ...&lt;/P&gt;&lt;P&gt;From ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[New Table]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Resident TabeA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Preceding&lt;/STRONG&gt;&lt;STRONG&gt; Load:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Its contains more than one load statements that execute from the Bottom up.&lt;/P&gt;&lt;P&gt;--&amp;gt; It allows you to created additional ETL transfermation using transformed field from the previous load statements.&lt;/P&gt;&lt;P&gt;let say, Calculate margin using two fields from the previous load statement: sales and LandedCost&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load *, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;((Sales-LandedCost)/Sales) as Margin; // preceding load using previous load statement field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;Product,Sales&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LandedCost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,210,100&lt;/P&gt;&lt;P&gt;B,310,150&lt;/P&gt;&lt;P&gt;C,500,400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you &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;Regards,&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 14:38:26 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2017-05-11T14:38:26Z</dc:date>
    <item>
      <title>Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322341#M840204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between preceding load &amp;amp; resident load.&lt;/P&gt;&lt;P&gt;when we have to used preceding load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&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/Preceding-Load-Resident-Load/m-p/1322341#M840204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322342#M840205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;------------------------------------------------------Preceding load ----------------------------------------------------------&lt;/P&gt;&lt;P&gt;1. The preceding load can be used to define multiple calculations and transformations within on e load script2&lt;SPAN style="font-size: 10pt;"&gt; The 2.preceding load takes input from a previous load statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. Preceding load is invoked by checking “Preceding load” while selecting load statement&lt;/P&gt;&lt;P&gt;4. Using a preceding load you don’t need to perform the same calculation in several times&lt;SPAN style="font-size: 10pt;"&gt;5. We can do aggregations and calculations using Preceding load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preceding Load Sample Script:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Preseding_Sample:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeCountry&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amt&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;group&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;by&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeCountry&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Office_Loc:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Directory&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Office&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeAddress&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficePostalCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeCity&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeStateProvince&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficePhone&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeFax&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OfficeCountry&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; SampleData.txt&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;txt&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; '\t', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;msq&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;------------------------------------------------------Resident load ---------------------------------------------------------&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt; Resident load can be used to load from a previously loaded table.&lt;/LI&gt;&lt;LI&gt; In Resident&amp;nbsp; load calculation or transformation can be handled&lt;/LI&gt;&lt;LI&gt; Resident load can be used to perfume calculation on existing fields and tables also&lt;/LI&gt;&lt;LI&gt;This requirement arises when you want to create a table deriving data from already existing table in the same script.&lt;/LI&gt;&lt;LI&gt; Aggregation will not work while loading on base table,in this scenario we have to use resident table .&lt;/LI&gt;&lt;LI&gt;Aggregation will work on already loaded data,we have use resident load for aggregation&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sample Script&amp;nbsp; for reference &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; Country_population:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Capital&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Area(km.sq)]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Population(mio)]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Pop. Growth]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Currency&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Inflation&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Official name of Country]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Preceding Load\Country_population.csv]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;txt&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ',', &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;msq&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; calculated_Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Population(mio)]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)/1565 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;percentage_Population&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Country_population &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;group&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;by&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Country&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;drop&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; Country_population;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Simple :Creating # Temp table in sqlserver in temporary basis and at the end after calculation drop the # Temp&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 05:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322342#M840205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T05:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322343#M840206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Blog&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 05:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322343#M840206</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-11T05:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322344#M840207</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;Generally, preceding load is a simplified function that loads faster than resident load, this is done by having the same calculation for many places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do have a look at this detailed document posted by Henric Crostrom:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2972"&gt;Preceding Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 06:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322344#M840207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T06:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322345#M840208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In most cases, the same result can be achieved by using a preceding &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; instead, that is, a &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; statement that loads from the &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; or &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;SELECT&lt;/SPAN&gt; statement below, without specifying a source qualifier such as &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;From&lt;/SPAN&gt; or &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Resident&lt;/SPAN&gt; that you would normally do. A preceding &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; is generally the faster option, but there are some cases where you need to use a &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Resident&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; instead:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you want to use the &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Order_by&lt;/SPAN&gt; clause to sort the records before processing the &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; statement.&lt;/LI&gt;&lt;LI&gt;If you want to use any of the following prefixes, in which cases preceding &lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;LOAD&lt;/SPAN&gt; is not supported:&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Crosstable&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Join&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;Intervalmatch&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;&lt;STRONG&gt;IS THIS RIGHT?&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 06:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322345#M840208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T06:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322346#M840209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prachi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following examples you mentioned are right, in those cases you have to use resident.&lt;/P&gt;&lt;P&gt;But this whole post is a bit outdated, Since the new versions of Qlik (last couple of years), preceding load is SLOWER than RESIDENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check Rob's post from a year ago to further understand the issue&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2016/04/the-cost-of-preceding-load/" style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;http://qlikviewcookbook.com/2016/04/the-cost-of-preceding-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 06:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322346#M840209</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2017-05-11T06:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322347#M840210</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;Please go through this well explained with example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Load:&lt;/P&gt;&lt;P&gt;In some cases we need to reload the same table more than once in a single script execution to&lt;/P&gt;&lt;P&gt;reprocess the same data after the first read in order to make it adequate for our data model. Since the&lt;/P&gt;&lt;P&gt;data is being stored in RAM after each query during the script execution, we can use that RAM-stored&lt;/P&gt;&lt;P&gt;data instead of going directly to the original data source. This is accomplished via a Resident Load.&lt;/P&gt;&lt;P&gt;Resident keyword is used to reference the data in RAM model, that is, all the tables that have&lt;/P&gt;&lt;P&gt;been previously read in the preceding queries of the same script.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;OrderID,&lt;/P&gt;&lt;P&gt;Customer,&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;FROM Orders;&lt;/P&gt;&lt;P&gt;CustomerFirstInvoiceDate: // Reloading the Orders table with Group By to get the first invoice date&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Customer,&lt;/P&gt;&lt;P&gt;Min(Date) AS CustomerStartDate&lt;/P&gt;&lt;P&gt;RESIDENT Orders&lt;/P&gt;&lt;P&gt;GROUP BY Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Precedent Load:&lt;/P&gt;&lt;P&gt;The preceding LOAD feature allows you to load a table in one pass, but still define several&lt;/P&gt;&lt;P&gt;successive transformations. Basically, it is a LOAD statement that loads from the LOAD or SELECT&lt;/P&gt;&lt;P&gt;statement below, without specifying a source qualifier such as From or Resident that you would&lt;/P&gt;&lt;P&gt;normally do.&lt;/P&gt;&lt;P&gt;You can stack any number of LOAD statements this way. The statement at the bottom will be&lt;/P&gt;&lt;P&gt;evaluated first, then the statement above, and so on until the top statement has been evaluated. You&lt;/P&gt;&lt;P&gt;can achieve the same result using Resident, but in most cases a preceding LOAD will be faster.&lt;/P&gt;&lt;P&gt;Another advantage of preceding load is that you can keep a calculation in one place, and reuse it in LOAD statements placed above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1: Transforming data loaded by a SELECT statement&lt;/P&gt;&lt;P&gt;If you load data from a database using a SELECT statement, you cannot use Qlikview functions to&lt;/P&gt;&lt;P&gt;interpret data in the SELECT statement. The solution is to add a LOAD statement, where you perform&lt;/P&gt;&lt;P&gt;data transformation, above the SELECT statement.&lt;/P&gt;&lt;P&gt;In this example we interpret a date stored as a string using the Qlikview function Date# in a&lt;/P&gt;&lt;P&gt;LOAD statement, using the previous SELECT statement as source.&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Date(Date#(OrderDate, ’YYYYMMDD’), ‘MM/DD/YYYY’) as OrderDate;&lt;/P&gt;&lt;P&gt;SQL SELECT OrderID&lt;/P&gt;&lt;P&gt;OrderDate ,&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;FROM Orders;&lt;/P&gt;&lt;P&gt;Example 2: Simplifying your script by reusing calculations&lt;/P&gt;&lt;P&gt;In this example we use a calculation more than once in the script&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Age( FromDate + IterNo() – 1, BirthDate ) as Age,&lt;/P&gt;&lt;P&gt;Date( FromDate + IterNo() – 1 ) as ReferenceDate&lt;/P&gt;&lt;P&gt;Resident Policies&lt;/P&gt;&lt;P&gt;While IterNo() &amp;lt;= ToDate - FromDate + 1 ;&lt;/P&gt;&lt;P&gt;By introducing the calculation in a first pass, we can reuse it in the Age function in a preceding&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD ...,&lt;/P&gt;&lt;P&gt;ReferenceDate,&lt;/P&gt;&lt;P&gt;Age( ReferenceDate, BirthDate ) as Age;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Date( FromDate + IterNo() – 1 ) as ReferenceDate&lt;/P&gt;&lt;P&gt;Resident Policies&lt;/P&gt;&lt;P&gt;While IterNo() &amp;lt;= ToDate - FromDate + 1 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 08:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322347#M840210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322348#M840211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys i am getting confused.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 14:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322348#M840211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding Load &amp; Resident Load</title>
      <link>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322349#M840212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Resident Load:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It allows you to create a new logical table using qlikview based on existing table (which loaded in memory)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TabeA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load ...&lt;/P&gt;&lt;P&gt;From ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[New Table]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Resident TabeA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Preceding&lt;/STRONG&gt;&lt;STRONG&gt; Load:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Its contains more than one load statements that execute from the Bottom up.&lt;/P&gt;&lt;P&gt;--&amp;gt; It allows you to created additional ETL transfermation using transformed field from the previous load statements.&lt;/P&gt;&lt;P&gt;let say, Calculate margin using two fields from the previous load statement: sales and LandedCost&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load *, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;((Sales-LandedCost)/Sales) as Margin; // preceding load using previous load statement field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;Product,Sales&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LandedCost&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,210,100&lt;/P&gt;&lt;P&gt;B,310,150&lt;/P&gt;&lt;P&gt;C,500,400&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you &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;Regards,&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 14:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preceding-Load-Resident-Load/m-p/1322349#M840212</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-05-11T14:38:26Z</dc:date>
    </item>
  </channel>
</rss>

