<?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 Parsing nested data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Parsing-nested-data/m-p/1639022#M63441</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I got data in csv, loaded it and it has nested column with unknown amount of itwems for parsing.&lt;/P&gt;&lt;P&gt;I tried to use the subfield() function, which works fine, except for the unknown amount of items to parse. So i want to denormalize, but cant figure out how to create separate row for each item in the nested field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:17:23 GMT</pubDate>
    <dc:creator>BSP</dc:creator>
    <dc:date>2024-11-16T04:17:23Z</dc:date>
    <item>
      <title>Parsing nested data</title>
      <link>https://community.qlik.com/t5/App-Development/Parsing-nested-data/m-p/1639022#M63441</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I got data in csv, loaded it and it has nested column with unknown amount of itwems for parsing.&lt;/P&gt;&lt;P&gt;I tried to use the subfield() function, which works fine, except for the unknown amount of items to parse. So i want to denormalize, but cant figure out how to create separate row for each item in the nested field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parsing-nested-data/m-p/1639022#M63441</guid>
      <dc:creator>BSP</dc:creator>
      <dc:date>2024-11-16T04:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing nested data</title>
      <link>https://community.qlik.com/t5/App-Development/Parsing-nested-data/m-p/1642650#M63442</link>
      <description>&lt;P&gt;If this is a one time parse, load your table without doing subfields with this line: SubStringCount([Field to Parse])+1 as "total count" as a field. Look in your data for the highest "total count" value in the dimension. That would be your IterNo to use when parsing.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I found that my "total count" was 74 in my data. So i load my subfields as long as the IterNo is less than 75.&lt;/P&gt;&lt;P&gt;[Temp Data]:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;(SubField([@7], chr(94),IterNo())) as "Field1",&lt;BR /&gt;(SubField([@8], chr(94),IterNo())) as "Field2",&lt;BR /&gt;(SubField([@9], chr(94),IterNo())) as "Field3"&lt;BR /&gt;FROM [lib://Data/file.txt]&lt;BR /&gt;(txt, codepage is 28591, no labels, delimiter is spaces)&lt;BR /&gt;While IterNo()&amp;lt;75&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;If this is a daily load, you'd want to do the count and create a variable for it and then do it while IterNo() is less than your variable. Or, if you wanted to roughly estimate it, you could do while IterNo() is less than a number you think it would always be less than to create that temporary table, and then create the permanent table like this:&lt;/P&gt;&lt;P&gt;PermanentTable:&lt;BR /&gt;Load&lt;BR /&gt;Field1,&lt;BR /&gt;Field2,&lt;BR /&gt;Field3&lt;BR /&gt;Resident "Temp Data"&lt;BR /&gt;where not isnull(Field1);&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parsing-nested-data/m-p/1642650#M63442</guid>
      <dc:creator>melissapluke</dc:creator>
      <dc:date>2019-11-04T17:30:41Z</dc:date>
    </item>
  </channel>
</rss>

