<?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: Generic Load is not working on Date with Slash or hyphen or [Full Name] in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971550#M1220574</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57433"&gt;@Vishal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you try this proposition :&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Input:
load * inline [
Date,Indicate_flag,NPS
15Apr16,NPS,2
26Apr16,NPS,3
27Apr16,NPS,4
29Apr16,NPS,5
30Apr16,NPS,6
];

DATA:
 Generic LOAD
 
 Indicate_flag, 
 Date, 
 NPS
 Resident Input;
     


 
output:

Load distinct Indicate_flag  resident Input;
 Drop Table   Input;
   

FOR i = NoOfTables()-1 to 0 STEP -1

  LET vTable=TableName($(i));
  //trace $(i) - '$(vTable)';
  IF WildMatch('$(vTable)', 'DATA.*') THEN 

  LEFT JOIN ([output]) LOAD distinct * RESIDENT [$(vTable)];

  DROP TABLE [$(vTable)];

  ENDIF 

NEXT i&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Taoufiq_Zarra_0-1661197291205.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87216iF7508E37DC52F55B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Taoufiq_Zarra_0-1661197291205.png" alt="Taoufiq_Zarra_0-1661197291205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Taoufiq_Zarra_1-1661197328654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87217i88BBF7367D8FE1FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Taoufiq_Zarra_1-1661197328654.png" alt="Taoufiq_Zarra_1-1661197328654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 20:42:49 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2022-08-22T20:42:49Z</dc:date>
    <item>
      <title>Generic Load is not working on Date with Slash or hyphen or [Full Name]</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971475#M1220570</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help in advance. I am stuck at Generic Load, wherein I need to convert Date as 15-04-16 to Column name, or a value with full name, such as 'Other Users'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached a file here, which contain three scenarios. Please have a look.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have table as below, but dates are as 15-04-16 or in some cases - Other Uses.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vishal_0-1661189338998.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87197i1C24BE91C9FFA887/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vishal_0-1661189338998.png" alt="Vishal_0-1661189338998.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I want to transpose the above table as below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vishal_1-1661189466942.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87198i6BE87D5449B735BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vishal_1-1661189466942.png" alt="Vishal_1-1661189466942.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For this, I have used below script -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Ind:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load * Inline[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date, Indication_flag, NPS&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;15Apr16, NPS, 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;26Apr16, NPS, 3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;27Apr16, NPS, 4&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;29Apr16, NPS, 5&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;30Apr16, NPS, 6&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NTranspose:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Generic LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Indication_flag, Date as Date, NPS&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Ind;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load Distinct Indication_flag Resident Ind;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For i=0 to NoOfTables()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TableList:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TableName($(i)) as TableName&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where WildMatch(TableName($(i)), 'NTranspose*');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NEXT i&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For j=1 to FieldValueCount('TableName')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LET vTable = FieldValue('TableName', $(j));&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Left Join(Data) LOAD * Resident $(vTable);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Drop Table $(vTable);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Next j&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Drop Tables Ind, TableList;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Now, wherever there is a date containing hyphen or slash, or full name as value, I get below error. Kindly help!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vishal_3-1661189911025.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87200iFBB1F9E790C64F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vishal_3-1661189911025.png" alt="Vishal_3-1661189911025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vishal_4-1661190009865.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87201iD3A95B992412637D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vishal_4-1661190009865.png" alt="Vishal_4-1661190009865.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 17:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971475#M1220570</guid>
      <dc:creator>Vishal</dc:creator>
      <dc:date>2022-08-22T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Load is not working on Date with Slash or hyphen or [Full Name]</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971550#M1220574</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57433"&gt;@Vishal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you try this proposition :&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Input:
load * inline [
Date,Indicate_flag,NPS
15Apr16,NPS,2
26Apr16,NPS,3
27Apr16,NPS,4
29Apr16,NPS,5
30Apr16,NPS,6
];

DATA:
 Generic LOAD
 
 Indicate_flag, 
 Date, 
 NPS
 Resident Input;
     


 
output:

Load distinct Indicate_flag  resident Input;
 Drop Table   Input;
   

FOR i = NoOfTables()-1 to 0 STEP -1

  LET vTable=TableName($(i));
  //trace $(i) - '$(vTable)';
  IF WildMatch('$(vTable)', 'DATA.*') THEN 

  LEFT JOIN ([output]) LOAD distinct * RESIDENT [$(vTable)];

  DROP TABLE [$(vTable)];

  ENDIF 

NEXT i&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Taoufiq_Zarra_0-1661197291205.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87216iF7508E37DC52F55B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Taoufiq_Zarra_0-1661197291205.png" alt="Taoufiq_Zarra_0-1661197291205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Taoufiq_Zarra_1-1661197328654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87217i88BBF7367D8FE1FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Taoufiq_Zarra_1-1661197328654.png" alt="Taoufiq_Zarra_1-1661197328654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 20:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971550#M1220574</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2022-08-22T20:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Load is not working on Date with Slash or hyphen or [Full Name]</title>
      <link>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971790#M1220580</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;! it worked for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 09:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generic-Load-is-not-working-on-Date-with-Slash-or-hyphen-or-Full/m-p/1971790#M1220580</guid>
      <dc:creator>Vishal</dc:creator>
      <dc:date>2022-08-23T09:04:27Z</dc:date>
    </item>
  </channel>
</rss>

