<?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 Merging records in Qlik View Scripting by the same key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803368#M1211897</link>
    <description>&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;I hope for a suggestion for the following challenge in Qlik Scripting Coding. I am a Beginner and I think, this topic is pretty common in Qlik Scripting.&lt;/P&gt;&lt;P&gt;We have following input file called &lt;STRONG&gt;PA0521TZ.qvd&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;PERNR;%key;BEGDA;ATZPH&lt;BR /&gt;00250731;873-00250731;01.01.2011;BA&lt;BR /&gt;00250731;873-00250731;17.12.2012;BF&lt;BR /&gt;00250846;873-00250846;01.10.2014;BA&lt;BR /&gt;00250846;873-00250846;01.10.2015;BF&lt;BR /&gt;00250846;873-00250846;01.10.2016;BA&lt;BR /&gt;00579002;873-00579002;01.03.2017;BA&lt;BR /&gt;00579002;873-00579002;26.01.2018;BF&lt;/P&gt;&lt;P&gt;As we can see for the PERNR, for example 00250731 we have two records. They differ in the values of the columns BEDA and ATZPH. Our goal is to produce a new record out of the two which should look as follows&lt;/P&gt;&lt;P&gt;PERNR; %key; BAField; BFField&lt;/P&gt;&lt;P&gt;00250731;873-00250731;01.01.2011;17.12.2012&lt;/P&gt;&lt;P&gt;So it is a kind of merging of any to records that have the same key.&lt;/P&gt;&lt;P&gt;I was suggested to use apply_map... but this does not work. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards, Alexandru Draghici&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 07:02:52 GMT</pubDate>
    <dc:creator>draghici1109</dc:creator>
    <dc:date>2021-04-28T07:02:52Z</dc:date>
    <item>
      <title>Merging records in Qlik View Scripting by the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803368#M1211897</link>
      <description>&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;I hope for a suggestion for the following challenge in Qlik Scripting Coding. I am a Beginner and I think, this topic is pretty common in Qlik Scripting.&lt;/P&gt;&lt;P&gt;We have following input file called &lt;STRONG&gt;PA0521TZ.qvd&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;PERNR;%key;BEGDA;ATZPH&lt;BR /&gt;00250731;873-00250731;01.01.2011;BA&lt;BR /&gt;00250731;873-00250731;17.12.2012;BF&lt;BR /&gt;00250846;873-00250846;01.10.2014;BA&lt;BR /&gt;00250846;873-00250846;01.10.2015;BF&lt;BR /&gt;00250846;873-00250846;01.10.2016;BA&lt;BR /&gt;00579002;873-00579002;01.03.2017;BA&lt;BR /&gt;00579002;873-00579002;26.01.2018;BF&lt;/P&gt;&lt;P&gt;As we can see for the PERNR, for example 00250731 we have two records. They differ in the values of the columns BEDA and ATZPH. Our goal is to produce a new record out of the two which should look as follows&lt;/P&gt;&lt;P&gt;PERNR; %key; BAField; BFField&lt;/P&gt;&lt;P&gt;00250731;873-00250731;01.01.2011;17.12.2012&lt;/P&gt;&lt;P&gt;So it is a kind of merging of any to records that have the same key.&lt;/P&gt;&lt;P&gt;I was suggested to use apply_map... but this does not work. Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards, Alexandru Draghici&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803368#M1211897</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2021-04-28T07:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merging records in Qlik View Scripting by the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803389#M1211898</link>
      <description>&lt;P&gt;You can try with Generic Load, like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Generic Load &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;//PERNR &amp;amp;'|'&amp;amp; %key as KEY, ATZPH,BEGDA&amp;nbsp; &amp;nbsp;//you can use the KEY idea to avoid synthetic key issue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;PERNR , %key , ATZPH,BEGDA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PERNR;%key;BEGDA;ATZPH&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00250731;873-00250731;01.01.2011;BA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00250731;873-00250731;17.12.2012;BF&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00250846;873-00250846;01.10.2014;BA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00250846;873-00250846;01.10.2015;BF&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00250846;873-00250846;01.10.2016;BA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00579002;873-00579002;01.03.2017;BA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;00579002;873-00579002;26.01.2018;BF] (delimiter is ';')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tresesco_0-1619595480682.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53868i3CC9088607C638B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tresesco_0-1619595480682.png" alt="tresesco_0-1619595480682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note: you can even leave the synthetic keys as is unless this is being impacted by other tables in your data model.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803389#M1211898</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-04-28T07:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merging records in Qlik View Scripting by the same key</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803395#M1211900</link>
      <description>&lt;P&gt;Yes, this is the solution... &lt;STRONG&gt;thank you for your timely response!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I used generic load in the past in other situations, yet did not realized that this is also an use case!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Honored to become part of such a high professional community!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kind Regards from Germany&lt;/P&gt;&lt;P&gt;A. Draghici&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-records-in-Qlik-View-Scripting-by-the-same-key/m-p/1803395#M1211900</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2021-04-28T07:55:17Z</dc:date>
    </item>
  </channel>
</rss>

