<?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 Creating change hierarchy in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515531#M105680</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I need your help creating hierarchy/history of material changes like in the example below via qlik script.&lt;BR /&gt;The aim is to list for each new version of the material all predecessors.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Original table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OLD,NEW&lt;BR /&gt;68-25-01,68-25-02&lt;BR /&gt;68-25-02,68-25-03&lt;BR /&gt;68-25-03,68-25-04&lt;BR /&gt;15-15-04,15-15-05&lt;BR /&gt;74-12-01,74-12-02&lt;BR /&gt;38-90-06,40-00-01&lt;BR /&gt;40-00-01,40-00-02&lt;BR /&gt;40-00-02,40-10-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OLD,NEW&lt;BR /&gt;68-25-01,68-25-02&lt;BR /&gt;68-25-01,68-25-03&lt;BR /&gt;68-25-01,68-25-04&lt;BR /&gt;68-25-02,68-25-03&lt;BR /&gt;68-25-02,68-25-04&lt;BR /&gt;68-25-03,68-25-04&lt;BR /&gt;15-15-04,15-15-05&lt;BR /&gt;74-12-01,74-12-02&lt;BR /&gt;38-90-06,40-00-01&lt;BR /&gt;38-90-06,40-00-02&lt;BR /&gt;38-90-06,40-10-01&lt;BR /&gt;40-00-01,40-00-02&lt;BR /&gt;40-00-01,40-10-01&lt;BR /&gt;40-00-02,40-10-01&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 17:25:07 GMT</pubDate>
    <dc:creator>MarkiMark</dc:creator>
    <dc:date>2025-04-23T17:25:07Z</dc:date>
    <item>
      <title>Creating change hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515531#M105680</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I need your help creating hierarchy/history of material changes like in the example below via qlik script.&lt;BR /&gt;The aim is to list for each new version of the material all predecessors.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Original table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OLD,NEW&lt;BR /&gt;68-25-01,68-25-02&lt;BR /&gt;68-25-02,68-25-03&lt;BR /&gt;68-25-03,68-25-04&lt;BR /&gt;15-15-04,15-15-05&lt;BR /&gt;74-12-01,74-12-02&lt;BR /&gt;38-90-06,40-00-01&lt;BR /&gt;40-00-01,40-00-02&lt;BR /&gt;40-00-02,40-10-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OLD,NEW&lt;BR /&gt;68-25-01,68-25-02&lt;BR /&gt;68-25-01,68-25-03&lt;BR /&gt;68-25-01,68-25-04&lt;BR /&gt;68-25-02,68-25-03&lt;BR /&gt;68-25-02,68-25-04&lt;BR /&gt;68-25-03,68-25-04&lt;BR /&gt;15-15-04,15-15-05&lt;BR /&gt;74-12-01,74-12-02&lt;BR /&gt;38-90-06,40-00-01&lt;BR /&gt;38-90-06,40-00-02&lt;BR /&gt;38-90-06,40-10-01&lt;BR /&gt;40-00-01,40-00-02&lt;BR /&gt;40-00-01,40-10-01&lt;BR /&gt;40-00-02,40-10-01&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 17:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515531#M105680</guid>
      <dc:creator>MarkiMark</dc:creator>
      <dc:date>2025-04-23T17:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating change hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515571#M105681</link>
      <description>&lt;P&gt;You could probably solve this by looking into and using the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/November2024/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/HierarchyBelongsTo.htm" target="_blank" rel="noopener"&gt;HierarchyBelongsTo&lt;/A&gt;&amp;nbsp;functionality. It is designed for handling paren child node datasets like yours.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 04:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515571#M105681</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-04-24T04:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating change hierarchy</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515580#M105683</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp; thanks for the tip! I managed to get the desired result with the script below. I'm not using the HierarchyBelongsTo() &amp;nbsp;function exactly as intended, but it gets the job done.&lt;/P&gt;&lt;DIV&gt;Data:&lt;/DIV&gt;&lt;DIV&gt;NoConcatenate Load * Inline [&lt;/DIV&gt;&lt;DIV&gt;OLD,NEW&lt;/DIV&gt;&lt;DIV&gt;68-25-01,68-25-02&lt;/DIV&gt;&lt;DIV&gt;68-25-02,68-25-03&lt;/DIV&gt;&lt;DIV&gt;68-25-03,68-25-04&lt;/DIV&gt;&lt;DIV&gt;15-15-04,15-15-05&lt;/DIV&gt;&lt;DIV&gt;74-12-01,74-12-02&lt;/DIV&gt;&lt;DIV&gt;38-90-06,40-00-01&lt;/DIV&gt;&lt;DIV&gt;40-00-01,40-00-02&lt;/DIV&gt;&lt;DIV&gt;40-00-02,40-10-01&lt;/DIV&gt;&lt;DIV&gt;];&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;HierarchyTable:&lt;/DIV&gt;&lt;DIV&gt;NoConcatenate&lt;/DIV&gt;&lt;DIV&gt;HierarchyBelongsTo (OLD, NEW, Replacement, AncestorID, AncestorName)&lt;/DIV&gt;&lt;DIV&gt;LOAD&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Text(OLD) as OLD,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Text(NEW) as NEW,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; 'CVP/' &amp;amp; NEW as&amp;nbsp; Replacement&lt;/DIV&gt;&lt;DIV&gt;Resident Data;&lt;/DIV&gt;&lt;DIV&gt;Drop Table Data;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;NewVersion:&lt;/DIV&gt;&lt;DIV&gt;NoConcatenate&lt;/DIV&gt;&lt;DIV&gt;Load&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OLD,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Text(SubField(AncestorName,'/',2)) as NEW,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Replace(AncestorName,'CVP/','CVP-') as Replacement&lt;/DIV&gt;&lt;DIV&gt;Resident HierarchyTable;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Drop Table HierarchyTable;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Apr 2025 06:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-change-hierarchy/m-p/2515580#M105683</guid>
      <dc:creator>MarkiMark</dc:creator>
      <dc:date>2025-04-24T06:15:25Z</dc:date>
    </item>
  </channel>
</rss>

