<?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: Determine value with partial sequence of Path field. in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Determine-value-with-partial-sequence-of-Path-field/m-p/2438302#M3587</link>
    <description>&lt;P&gt;The match-logic isn't quite clear for me and probably more complex as indicated in the example. Therefore just a few hints how you may approach to your target.&lt;/P&gt;
&lt;P&gt;Quite common by evaluating such concatenated strings respectively arrays is to split them into single values respectively smaller arrays in regard to their belonging keys and other fields and then using them in mappings to return the wanted matches.&lt;/P&gt;
&lt;P&gt;A single simple mapping-table might be not enough to get the intended results but you may apply n mappings as well as nested ones (the mapping-table itself as well as by calling the mapping). Important by nested approaches is the order of the data and executions - especially if multiples matches are possible. By multiple matches you may beside an applymap() call also use a mapsubstring() approach.&lt;/P&gt;
&lt;P&gt;Here an approach how to resolve data like yours and with the included meta-data you could always track which data was on which point transformed. Further useful may be to add len() and substringcount() as well as any kind of rank() or flag/scoring-values to support your match-logic:&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;load *, rowno() as RowNo where IterNo1 * IterNo2 &amp;gt; 1;&lt;BR /&gt;load *, subfield(SubPath1 &amp;amp; '|', '|', iterno()) as SubPath2, iterno() as IterNo2 &lt;BR /&gt;&amp;nbsp; &amp;nbsp;while iterno() &amp;lt;= substringcount(SubPath1 &amp;amp; '|', '|');&lt;BR /&gt;load *, text(left(path &amp;amp; '|', index(path &amp;amp; '|', '|', -iterno()) - 1)) as SubPath1, iterno() as IterNo1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;while iterno() &amp;lt;= substringcount(path, '|') + 1;&lt;BR /&gt;load *, recno() as RecNo&lt;BR /&gt;Inline [factor, path,&lt;BR /&gt;....]&amp;nbsp;(delimiter is ',');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 10:42:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-04-05T10:42:39Z</dc:date>
    <item>
      <title>Determine value with partial sequence of Path field.</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Determine-value-with-partial-sequence-of-Path-field/m-p/2438273#M3585</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a table with two columns Factor and Path.&lt;BR /&gt;In the third column "Value" the determined value of the field Factor should be related. &lt;BR /&gt;The graphic should describe my problem in more detail.&lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Fösi&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Foesi12_0-1712307928922.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163531iD874F9E14F32663B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Foesi12_0-1712307928922.png" alt="Foesi12_0-1712307928922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Temp:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;LOAD *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;factor, path,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 1|11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;4, 1|22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 1|66&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;8, 1|44&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 1|77&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 1|11|111&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2, 1|22|222&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 1|66|666&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 1|44|444&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;8, 1|77|888&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2, 1|11|111|3333&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 1|22|222|4444&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;9, 1|66|666|7777&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;5, 1|44|444|8888&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 1|77|888|9999&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;1, 2|11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 2|99&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 2|77&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2, 2|11|123&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2, 2|99|234&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3, 2|77|789&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;8, 2|11|123|8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;5, 2|99|234|7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;7, 2|77|789|7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(delimiter is ',');&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 09:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Determine-value-with-partial-sequence-of-Path-field/m-p/2438273#M3585</guid>
      <dc:creator>Foesi12</dc:creator>
      <dc:date>2024-04-05T09:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Determine value with partial sequence of Path field.</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Determine-value-with-partial-sequence-of-Path-field/m-p/2438302#M3587</link>
      <description>&lt;P&gt;The match-logic isn't quite clear for me and probably more complex as indicated in the example. Therefore just a few hints how you may approach to your target.&lt;/P&gt;
&lt;P&gt;Quite common by evaluating such concatenated strings respectively arrays is to split them into single values respectively smaller arrays in regard to their belonging keys and other fields and then using them in mappings to return the wanted matches.&lt;/P&gt;
&lt;P&gt;A single simple mapping-table might be not enough to get the intended results but you may apply n mappings as well as nested ones (the mapping-table itself as well as by calling the mapping). Important by nested approaches is the order of the data and executions - especially if multiples matches are possible. By multiple matches you may beside an applymap() call also use a mapsubstring() approach.&lt;/P&gt;
&lt;P&gt;Here an approach how to resolve data like yours and with the included meta-data you could always track which data was on which point transformed. Further useful may be to add len() and substringcount() as well as any kind of rank() or flag/scoring-values to support your match-logic:&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;load *, rowno() as RowNo where IterNo1 * IterNo2 &amp;gt; 1;&lt;BR /&gt;load *, subfield(SubPath1 &amp;amp; '|', '|', iterno()) as SubPath2, iterno() as IterNo2 &lt;BR /&gt;&amp;nbsp; &amp;nbsp;while iterno() &amp;lt;= substringcount(SubPath1 &amp;amp; '|', '|');&lt;BR /&gt;load *, text(left(path &amp;amp; '|', index(path &amp;amp; '|', '|', -iterno()) - 1)) as SubPath1, iterno() as IterNo1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;while iterno() &amp;lt;= substringcount(path, '|') + 1;&lt;BR /&gt;load *, recno() as RecNo&lt;BR /&gt;Inline [factor, path,&lt;BR /&gt;....]&amp;nbsp;(delimiter is ',');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 10:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Determine-value-with-partial-sequence-of-Path-field/m-p/2438302#M3587</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-05T10:42:39Z</dc:date>
    </item>
  </channel>
</rss>

