<?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: How to load multiple dynamic fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125250#M18985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using a crosstable load to get all informations into a single field, then separate numbers from text and map text type. Finally use a Generic load to create fields from type (if needed at all, you can do most analysis using the count &amp;amp; type field structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID Field1 Field2 Field3 Field4&lt;/P&gt;&lt;P&gt;1 2 rooms 1 bath&lt;/P&gt;&lt;P&gt;2 terrace 3 rooms 2 baths&lt;/P&gt;&lt;P&gt;3 garden 2 rooms 1 bath terrace&lt;/P&gt;&lt;P&gt;] (delimiter is '\t');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;CrossTable (Field, Value)&lt;/P&gt;&lt;P&gt;LOAD * Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;LOAD ID, Type, Count&lt;/P&gt;&lt;P&gt;WHERE Len(Trim(Type));&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt;Value, &lt;/P&gt;&lt;P&gt;If(Len(Trim(Keepchar(Value,'0123456789'))),Keepchar(Value,'0123456789'),1) as Count,&lt;/P&gt;&lt;P&gt;Pick(WildMatch(lower(Value),'*garden*','*terrace*','*room*','*bath*'),'Garden','Terrace','Room','Bath') as Type&lt;/P&gt;&lt;P&gt;Resident TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2018 22:17:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-10-22T22:17:02Z</dc:date>
    <item>
      <title>How to load multiple dynamic fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125249#M18984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with dynamic structured data like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 400px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Field2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Field3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Field4&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2 rooms&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1 bath&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;terrace&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;3 rooms&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2 baths&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;garden&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2 rooms&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1 bath&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;terrace&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'd like to have this desired result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 400px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="80"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Rooms&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Baths&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Terrace&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Garden&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I get that if the field1,field2, fieldN could be filled with any possible value which later will be my desired dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 21:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125249#M18984</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2018-10-22T21:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple dynamic fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125250#M18985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using a crosstable load to get all informations into a single field, then separate numbers from text and map text type. Finally use a Generic load to create fields from type (if needed at all, you can do most analysis using the count &amp;amp; type field structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID Field1 Field2 Field3 Field4&lt;/P&gt;&lt;P&gt;1 2 rooms 1 bath&lt;/P&gt;&lt;P&gt;2 terrace 3 rooms 2 baths&lt;/P&gt;&lt;P&gt;3 garden 2 rooms 1 bath terrace&lt;/P&gt;&lt;P&gt;] (delimiter is '\t');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP:&lt;/P&gt;&lt;P&gt;CrossTable (Field, Value)&lt;/P&gt;&lt;P&gt;LOAD * Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;LOAD ID, Type, Count&lt;/P&gt;&lt;P&gt;WHERE Len(Trim(Type));&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt;Value, &lt;/P&gt;&lt;P&gt;If(Len(Trim(Keepchar(Value,'0123456789'))),Keepchar(Value,'0123456789'),1) as Count,&lt;/P&gt;&lt;P&gt;Pick(WildMatch(lower(Value),'*garden*','*terrace*','*room*','*bath*'),'Garden','Terrace','Room','Bath') as Type&lt;/P&gt;&lt;P&gt;Resident TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 22:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125250#M18985</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-22T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple dynamic fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125251#M18986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan! It's just what I want. The only point I miss here is how can I join the desired final table from the generic load point. &lt;/P&gt;&lt;P&gt;For example ordering by namefield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125251#M18986</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2018-10-23T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple dynamic fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125252#M18987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do it like Henric&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125252#M18987</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-23T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to load multiple dynamic fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125253#M18988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan! I've just took the version of Rob, because It adds a wildmatch check for the name of the table to match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Here's my final result fine :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Room&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Bath&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Terrace&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Garden&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;And the code to make it work :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GenericLabel :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, Type, Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Len(Trim(Type));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim(Keepchar(Value,'0123456789'))),Keepchar(Value,'0123456789'),1) as Count,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(WildMatch(lower(Value),'*garden*','*terrace*','*room*','*bath*'),'Garden','Terrace','Room','Bath') as Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CombinedGenericTable :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID&amp;nbsp; Resident TMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = NoOfTables()-1 to 0 STEP -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vTable=TableName($(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF WildMatch('$(vTable)', 'GenericLabel.*') THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LEFT JOIN ([CombinedGenericTable]) LOAD * RESIDENT [$(vTable)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE [$(vTable)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-multiple-dynamic-fields/m-p/125253#M18988</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2018-10-23T16:58:38Z</dc:date>
    </item>
  </channel>
</rss>

