<?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: load a record twice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030728#M347999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe by using a WHILE clause? The following doubles all rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SplitProfitTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD RecordID &amp;amp; pick(IterNo(), '', 'a') AS RecordID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profit * 0.5 AS Profit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT OriginalTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHILE IterNo() &amp;lt;= 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 15:07:18 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-03-08T15:07:18Z</dc:date>
    <item>
      <title>load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030725#M347996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;normally one record is one record.&lt;/P&gt;&lt;P&gt;However, new development brings up the question how I can load a record twice, &lt;/P&gt;&lt;P&gt;say key: Record1 and Record1a where I have to calculate the turnover twice but the profit once, split into&lt;/P&gt;&lt;P&gt;Record1 for 50% and Record1a also for 50%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would LOAD the Record1 and double it, naming the double Record1a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on the optimal loading and script technique?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much, happy to work together in this community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030725#M347996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030726#M347997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something 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 FieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD FieldName &amp;amp; 'a' as FieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030726#M347997</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030727#M347998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this could be an alternative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;Key &amp;amp; If(Iterno() = 2,'a','') as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; Profit / 2 as Profit,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Turnover&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHILE iterno() &amp;lt;=2;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030727#M347998</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-08T15:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030728#M347999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe by using a WHILE clause? The following doubles all rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SplitProfitTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD RecordID &amp;amp; pick(IterNo(), '', 'a') AS RecordID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profit * 0.5 AS Profit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT OriginalTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHILE IterNo() &amp;lt;= 2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030728#M347999</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-08T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030729#M348000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So do this:&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;RecordNo,&lt;/P&gt;&lt;P&gt;Turnover&lt;/P&gt;&lt;P&gt;from Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join load&lt;/P&gt;&lt;P&gt;RecordNo,&lt;/P&gt;&lt;P&gt;count(RecordNo) as Counter&lt;/P&gt;&lt;P&gt;resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Temp) load&lt;/P&gt;&lt;P&gt;RecordNo,&lt;/P&gt;&lt;P&gt;Profit&lt;/P&gt;&lt;P&gt;from Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;RecordNo,&lt;/P&gt;&lt;P&gt;Turnover,&lt;/P&gt;&lt;P&gt;Profit/Counter as Profit&lt;/P&gt;&lt;P&gt;resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030729#M348000</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2016-03-08T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: load a record twice</title>
      <link>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030730#M348001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danke.&lt;/P&gt;&lt;P&gt;Damit komme ich weiter. Peter hat auch diesen Weg beschrieben.&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 16:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-a-record-twice/m-p/1030730#M348001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T16:14:52Z</dc:date>
    </item>
  </channel>
</rss>

