<?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 How to refer the 1 record to another in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-refer-the-1-record-to-another/m-p/1792192#M61981</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I came across a case I bet will be rather easy for experienced Qlik users on this forum. I have 2 tables related to each other (data sample and the QS app attached).&lt;/P&gt;&lt;P&gt;Both tables are connected with a simple %KEY field like the underneath:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"NEW O ID",&lt;BR /&gt;"New O P",&lt;BR /&gt;"New O Owner",&lt;BR /&gt;"New O Field E",&lt;BR /&gt;&lt;STRONG&gt;"%KEY_OLD ORG ID"&lt;/STRONG&gt;&lt;BR /&gt;FROM [lib://DataFiles/Tab 1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&lt;STRONG&gt;"%KEY_OLD ORG ID",&lt;/STRONG&gt;&lt;BR /&gt;"Old O P",&lt;BR /&gt;"Old O Owner",&lt;BR /&gt;"Old O Field E"&lt;BR /&gt;FROM [lib://DataFiles/Tab 2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result here is a combined table that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzys_0-1615987120937.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51320i517857ECA419C999/image-size/large?v=v2&amp;amp;px=999" role="button" title="krzys_0-1615987120937.png" alt="krzys_0-1615987120937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the correct result when looking at the data model &lt;U&gt;however&lt;/U&gt; I would like it to look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzys_1-1615987225377.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51321iC664583B3137EF5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="krzys_1-1615987225377.png" alt="krzys_1-1615987225377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where record 0066A000004YjdrQACis correlated to&amp;nbsp;0066A000003wIJJQA2 (per the tables) but also to&amp;nbsp;0066A000004YjdrQAC. And thanks to this artificial relationship I would like to be able to pull all the related info.&lt;/P&gt;&lt;P&gt;All tips are very welcome&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
    <dc:creator>krzys</dc:creator>
    <dc:date>2021-12-20T21:02:46Z</dc:date>
    <item>
      <title>How to refer the 1 record to another</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-refer-the-1-record-to-another/m-p/1792192#M61981</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I came across a case I bet will be rather easy for experienced Qlik users on this forum. I have 2 tables related to each other (data sample and the QS app attached).&lt;/P&gt;&lt;P&gt;Both tables are connected with a simple %KEY field like the underneath:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"NEW O ID",&lt;BR /&gt;"New O P",&lt;BR /&gt;"New O Owner",&lt;BR /&gt;"New O Field E",&lt;BR /&gt;&lt;STRONG&gt;"%KEY_OLD ORG ID"&lt;/STRONG&gt;&lt;BR /&gt;FROM [lib://DataFiles/Tab 1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&lt;STRONG&gt;"%KEY_OLD ORG ID",&lt;/STRONG&gt;&lt;BR /&gt;"Old O P",&lt;BR /&gt;"Old O Owner",&lt;BR /&gt;"Old O Field E"&lt;BR /&gt;FROM [lib://DataFiles/Tab 2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result here is a combined table that looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzys_0-1615987120937.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51320i517857ECA419C999/image-size/large?v=v2&amp;amp;px=999" role="button" title="krzys_0-1615987120937.png" alt="krzys_0-1615987120937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the correct result when looking at the data model &lt;U&gt;however&lt;/U&gt; I would like it to look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzys_1-1615987225377.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51321iC664583B3137EF5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="krzys_1-1615987225377.png" alt="krzys_1-1615987225377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where record 0066A000004YjdrQACis correlated to&amp;nbsp;0066A000003wIJJQA2 (per the tables) but also to&amp;nbsp;0066A000004YjdrQAC. And thanks to this artificial relationship I would like to be able to pull all the related info.&lt;/P&gt;&lt;P&gt;All tips are very welcome&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-refer-the-1-record-to-another/m-p/1792192#M61981</guid>
      <dc:creator>krzys</dc:creator>
      <dc:date>2021-12-20T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer the 1 record to another</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-refer-the-1-record-to-another/m-p/1792219#M61984</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I load the same table again just for the ID I would like to have in the data set and used replace() for the %KEY the way I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main question is how to do it smarter since I cannot reload the same table 2000 times for 2000 %KEYs to be replaced. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;"NEW O ID",&lt;BR /&gt;"New O P",&lt;BR /&gt;"New O Owner",&lt;BR /&gt;"New O Field E",&lt;BR /&gt;"%KEY_OLD ORG ID"&lt;BR /&gt;FROM [lib://DataFiles/Tab 1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"NEW O ID",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"New O P",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"New O Owner",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"New O Field E",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;replace("%KEY_OLD ORG ID",'0066A000003wIJJQA2','0066A000004YjdrQAC') as "%KEY_OLD ORG ID"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM [lib://DataFiles/Tab 1.xlsx]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;"%KEY_OLD ORG ID",&lt;BR /&gt;"Old O P",&lt;BR /&gt;"Old O Owner",&lt;BR /&gt;"Old O Field E"&lt;BR /&gt;FROM [lib://DataFiles/Tab 2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-refer-the-1-record-to-another/m-p/1792219#M61984</guid>
      <dc:creator>krzys</dc:creator>
      <dc:date>2021-03-17T14:19:41Z</dc:date>
    </item>
  </channel>
</rss>

