<?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: Adding values from another table based on ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760876#M454030</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;You have received two very good possible solutions, we would appreciate it if you would return to the thread and use the Accept as Solution button on the post(s) that did help, or if you did something different, you can create a new post about that and then use the button on that post to mark the thread as solved.&amp;nbsp; If you require further help, please leave an update.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 20:37:04 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-11-11T20:37:04Z</dc:date>
    <item>
      <title>Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756950#M453825</link>
      <description>&lt;P&gt;So say I have the following files&lt;/P&gt;&lt;P&gt;&lt;U&gt;Table1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_0-1603957034948.png" style="width: 174px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43186iA69238D549CDFD24/image-dimensions/174x101?v=v2" width="174" height="101" role="button" title="johnnyjohn_0-1603957034948.png" alt="johnnyjohn_0-1603957034948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Table2&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43189i68A110FC054325A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am loading them into Qliksense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, when loading &lt;U&gt;Table2&lt;/U&gt;, I am trying to add values from &lt;U&gt;Table1&lt;/U&gt; in the following way:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For each ID (a1, a2, etc...), I need to add a row to &lt;U&gt;Table2&lt;/U&gt; using values from &lt;U&gt;Table1&lt;/U&gt;&lt;/LI&gt;&lt;LI&gt;In &lt;U&gt;Table1&lt;/U&gt;, I'm always going to have an ID show up once, and it will have a value associated to it (here called extra_value).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In my &lt;U&gt;Table2&lt;/U&gt;, I need to add, for each ID, at max(depth + 1), the value found in &lt;U&gt;Table1&lt;/U&gt; with the corresponding ID.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i.e. the extra_value of a1 in Table1 would be added to Table2 under the ID a1; and with value=0.54 and depth=3&lt;/P&gt;&lt;P&gt;so the final table would look like this (rows added are highlighted)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43190i02200B2EBD76F29F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Stumped on this one, any help would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756950#M453825</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2024-11-15T23:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756955#M453826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You could use a simple "concatenate" statement like below:&lt;/P&gt;&lt;P&gt;load * from Table1;&lt;BR /&gt;concatenate&lt;BR /&gt;load * from Table2;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;BR /&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756955#M453826</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2020-10-29T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756958#M453827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;T1:&lt;BR /&gt;LOAD * Inline&lt;BR /&gt;[&lt;BR /&gt;id, value, depth&lt;BR /&gt;a1, 0.12, 1&lt;BR /&gt;a1, 0.23, 2&lt;BR /&gt;a2, 0.15, 1&lt;BR /&gt;a2, 0.87, 2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Concatenate(T1)&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;id,extra_value&lt;BR /&gt;a1, 0.54&lt;BR /&gt;a2, 0.87&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Load id, if(IsNull(value), extra_value, value) as value, If(IsNull(depth), Peek('depth')+1, depth) as depth Resident T1&lt;BR /&gt;order by id;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1756958#M453827</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-10-29T08:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760876#M454030</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;You have received two very good possible solutions, we would appreciate it if you would return to the thread and use the Accept as Solution button on the post(s) that did help, or if you did something different, you can create a new post about that and then use the button on that post to mark the thread as solved.&amp;nbsp; If you require further help, please leave an update.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760876#M454030</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-11T20:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760931#M454034</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14114"&gt;@Brett_Bleess&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't accept the solution and close this thread , because it's not create by me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please close this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 23:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760931#M454034</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-11T23:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760939#M454035</link>
      <description>&lt;P&gt;another solution that will include the depth column but not using peek&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;noconcatenate
extra:
load ID, max(Depth) as Depth resiodent table2 group by ID;

inner join (extra) load ID, ExtraValue as Value resident table1;

concatenate(table2) load ID, Value, Depth resident extra;

drop table extra;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 00:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1760939#M454035</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-11-12T00:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values from another table based on ID</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1761114#M454039</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;My apologies, I miss-clicked and got your ID instead of&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;very sorry about that!&amp;nbsp; Thanks for flagging it to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109463"&gt;@johnnyjohn&lt;/a&gt;&amp;nbsp;to respond and close it out.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 12:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-values-from-another-table-based-on-ID/m-p/1761114#M454039</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-12T12:09:08Z</dc:date>
    </item>
  </channel>
</rss>

