<?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: Data Transformation using Inter record functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1705845#M595083</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV73.PNG" style="width: 184px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34473i07E0B61E55564284/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV73.PNG" alt="commQV73.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 22:56:07 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-05-27T22:56:07Z</dc:date>
    <item>
      <title>Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1615858#M595078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can any one help me with my following requirement please?&lt;/P&gt;&lt;P&gt;I have the below data&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SnapshotDate&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;StartedDate&lt;/TD&gt;&lt;TD&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;07/01/2018&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01/01/2018&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25/02/2018&lt;/TD&gt;&lt;TD&gt;A&lt;/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gt;&lt;TD&gt;24/03/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;26/03/2018&lt;/TD&gt;&lt;TD&gt;07/04/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;09/04/2018&lt;/TD&gt;&lt;TD&gt;30/12/2099&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1615858#M595078</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2024-11-16T02:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1615918#M595079</link>
      <description>HI&lt;BR /&gt;Try like this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;SnapshotDate, Product, StartedDate, EndDate&lt;BR /&gt;07/01/2018, A, 01/01/2018,&lt;BR /&gt;25/02/2018, A,, 03/03/2018&lt;BR /&gt;11/03/2018, A, 05/03/2018,&lt;BR /&gt;18/03/2018, A,, 24/03/2018&lt;BR /&gt;01/04/2018, A, 26/03/2018, 07/04/2018&lt;BR /&gt;15/04/2018, A, 09/04/2018,&lt;BR /&gt;11/08/2019, A,, 30/12/2099&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Load Product, StartedDate, if(Len(Trim(Previous(EndDate)))&amp;gt;0, Previous(EndDate), EndDate) as EndDate Resident Temp&lt;BR /&gt;where Len(Trim(StartedDate)) &amp;gt; 0order by SnapshotDate desc;&lt;BR /&gt;&lt;BR /&gt;DROP Table Temp;</description>
      <pubDate>Fri, 23 Aug 2019 11:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1615918#M595079</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2019-08-23T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1616028#M595080</link>
      <description>&lt;P&gt;Hi Mayilvahan,&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;The code is working only for the data set that I provided here. But this is a subset of data in a bigger table where there many other Products. So, somehow it's not working on the whole data set!&lt;/P&gt;&lt;P&gt;I tried this but it's not working:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Load&lt;BR /&gt;Product,&lt;BR /&gt;StartedDate&lt;BR /&gt;&amp;nbsp;,if(Product=Peek(Product) and Len(Trim(Previous(EnddDate)))&amp;gt;0, Previous(EnddDate), EnddDate) as EndDate&lt;BR /&gt;&amp;nbsp;Resident Temp&lt;BR /&gt;&lt;SPAN&gt;where Len(Trim(StartedDate)) &amp;gt; 0 order by SnapshotDate desc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 14:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1616028#M595080</guid>
      <dc:creator>sudhakar_budde</dc:creator>
      <dc:date>2019-08-23T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1619778#M595081</link>
      <description>&lt;P&gt;Sudhakar, try the following Help link, you should find what you need there I believe, not sure the Resident is what you need here, suspect you need an actual data source like an Excel file etc...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are a bunch of examples at the bottom of the link, just expand those to find the ones that may help you here.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 21:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1619778#M595081</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-03T21:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1705843#M595082</link>
      <description>&lt;P&gt;One solution is..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET DateFormat='DD/MM/YYYY';

tab1:
LOAD RowNo() As RowID, * INLINE [
SnapshotDate, Product, StartedDate, EndDate
07/01/2018, A, 01/01/2018,
25/02/2018, A, , 03/03/2018
11/03/2018, A, 05/03/2018,
18/03/2018, A, , 24/03/2018
01/04/2018, A, 26/03/2018, 07/04/2018
15/04/2018, A, 09/04/2018,
11/08/2019, A, , 30/12/2099
];

tab2:
LOAD *, RowNo() As K1
Resident tab1
Where StartedDate&amp;lt;&amp;gt;''
;

tab3:
LOAD *, RowNo() As K2
Resident tab1
Where EndDate&amp;lt;&amp;gt;''
;

tab4:
NoConcatenate
LOAD Product, StartedDate, K1
Resident tab2;
Left Join(tab4)
LOAD Product, EndDate, K2 As K1
Resident tab3;

Drop Table tab1, tab2, tab3;
Drop Field K1;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 May 2020 22:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1705843#M595082</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-05-27T22:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Transformation using Inter record functions</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1705845#M595083</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV73.PNG" style="width: 184px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34473i07E0B61E55564284/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV73.PNG" alt="commQV73.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 22:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Transformation-using-Inter-record-functions/m-p/1705845#M595083</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-05-27T22:56:07Z</dc:date>
    </item>
  </channel>
</rss>

