<?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: Split string, get value from another table and then join string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803437#M1211902</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 09:33:31 GMT</pubDate>
    <dc:creator>mibb1234</dc:creator>
    <dc:date>2021-04-28T09:33:31Z</dc:date>
    <item>
      <title>Split string, get value from another table and then join string</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803187#M1211880</link>
      <description>&lt;P&gt;I have a table similar to below (with other extra fields not shown for simplicity) and I need help with how to first split the string, then get the description from another table and then join the string again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to convert the Configuration code into descriptions as a new column.&amp;nbsp; The configuration code references multiple items and is separated by a ;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ID	Configuration Code
344	1;2;3
632	2;3;4
874	
521	4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the item table the each config code item references&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Item	Description
1	Description 1
2	Description 2
3	Description 3
4	Description 4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would be the expected output&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ID	Config	Desired Output
344	1;2;3	Description 1; Description 2; Description 3
632	2;3;4	Description 2; Description 3; Description 4
874		
521	4;5	Description 4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes the config code can be null. If so then the description should also be null.&lt;/P&gt;&lt;P&gt;Sometimes an item may not exist in the 'Item' table. If so, it should just get the next description (last one row is an example - item 5 does not exist)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or tips would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803187#M1211880</guid>
      <dc:creator>mibb1234</dc:creator>
      <dc:date>2021-04-27T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Split string, get value from another table and then join string</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803199#M1211881</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46417"&gt;@mibb1234&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Config:&lt;BR /&gt;LOAD ID, SubField([Configuration Code], ';') as [Configuration Code] INLINE [&lt;BR /&gt;ID, Configuration Code&lt;BR /&gt;344, 1;2;3&lt;BR /&gt;632, 2;3;4&lt;BR /&gt;874,&lt;BR /&gt;521, 4;5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Join(Config)&lt;BR /&gt;LOAD Item as [Configuration Code], Description INLINE [&lt;BR /&gt;Item, Description&lt;BR /&gt;1, Description 1&lt;BR /&gt;2, Description 2&lt;BR /&gt;3, Description 3&lt;BR /&gt;4, Description 4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Final:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load ID, Concat([Configuration Code], ';') as [Configuration Code], Concat(Description, ';') as Description Resident Config&lt;BR /&gt;Group by ID;&lt;/P&gt;&lt;P&gt;DROP Table Config;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803199#M1211881</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-04-27T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split string, get value from another table and then join string</title>
      <link>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803437#M1211902</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 09:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-string-get-value-from-another-table-and-then-join-string/m-p/1803437#M1211902</guid>
      <dc:creator>mibb1234</dc:creator>
      <dc:date>2021-04-28T09:33:31Z</dc:date>
    </item>
  </channel>
</rss>

