<?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: where not WildMatch() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907668#M74805</link>
    <description>Nope Marcus, the script reads all file and don't exclude the files 'Elenco Flussi'.&lt;BR /&gt;</description>
    <pubDate>Mon, 21 Mar 2022 14:13:15 GMT</pubDate>
    <dc:creator>EMME_DR</dc:creator>
    <dc:date>2022-03-21T14:13:15Z</dc:date>
    <item>
      <title>where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907061#M74755</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;in the editor i try to extract only files csv that doesn't contain the word 'ElencoFlussi', but it fails: what can I do?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;PDR_STG1:&lt;BR /&gt;LOAD&lt;BR /&gt;Piva_Udb&amp;amp;'|'&amp;amp;Cod_Remi&amp;amp;'|'&amp;amp;Cod_prof_prel_std&amp;amp;'|'&amp;amp;Trattamento&amp;amp;'|'&amp;amp;Annomese&amp;amp;'|'&amp;amp;pdr as key,&lt;BR /&gt;pdr&amp;amp;'|'&amp;amp;Annomese as key_flussi,&lt;BR /&gt;pdr,&lt;BR /&gt;Prelievo,&lt;BR /&gt;Piva_Udb,&lt;BR /&gt;Dtg,&lt;BR /&gt;Cod_Remi,&lt;BR /&gt;Id_regione_climatica,&lt;BR /&gt;Cod_prof_prel_std,&lt;BR /&gt;Trattamento,&lt;BR /&gt;Tipo_cliente,&lt;BR /&gt;Sessione,&lt;BR /&gt;Annomese,&lt;BR /&gt;filename() as NomeFile&lt;BR /&gt;FROM [lib://SCR_Shared_Folder/Dettaglio PDR - Flussi/*.csv]&lt;BR /&gt;(txt, codepage is 28591, embedded labels, delimiter is ';', msq)&lt;BR /&gt;where not WildMatch(filename(), 'ElencoFlussi');&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907061#M74755</guid>
      <dc:creator>EMME_DR</dc:creator>
      <dc:date>2022-03-18T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907112#M74758</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try below,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where not WildMatch(filename(), '&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;ElencoFlussi&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;BR /&gt;Ashutosh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 17:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907112#M74758</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2022-03-18T17:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907210#M74770</link>
      <description>No, it extracts all files&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2022 21:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907210#M74770</guid>
      <dc:creator>EMME_DR</dc:creator>
      <dc:date>2022-03-18T21:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907538#M74790</link>
      <description>&lt;P&gt;I'm not sure if you could use filename() on the outside of a load - means it's probably empty or NULL.&lt;/P&gt;
&lt;P&gt;More suitable within the many scenarios is the use of filelist() instead of your wildcard-load - means something like:&lt;/P&gt;
&lt;P&gt;for each file in filelist('path\*.csv')&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if not wildmatch('$(file)', '*xyz*') then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ... load ...&lt;BR /&gt;&amp;nbsp; &amp;nbsp;end if&lt;BR /&gt;next&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 11:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907538#M74790</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-21T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907550#M74792</link>
      <description>what do i set in the 'Set' condition before the loop?&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2022 11:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907550#M74792</guid>
      <dc:creator>EMME_DR</dc:creator>
      <dc:date>2022-03-21T11:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907577#M74794</link>
      <description>&lt;P&gt;I think you mean this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;for each file in filelist('path\*.csv')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;if not wildmatch('$(file)', '*xyz*') then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; t: load * from &lt;STRONG&gt;[$(file)] (txt, ...);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;next&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 12:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907577#M74794</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-21T12:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907668#M74805</link>
      <description>Nope Marcus, the script reads all file and don't exclude the files 'Elenco Flussi'.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907668#M74805</guid>
      <dc:creator>EMME_DR</dc:creator>
      <dc:date>2022-03-21T14:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907682#M74807</link>
      <description>&lt;P&gt;You use it really like above suggested with load * from [$(file)] and replacing xyz with your string? You may also adjust a bit the condition from:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if not wildmatch('$(file)', '*xyz*') then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if wildmatch('$(file)', '*xyz*') = 0 then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907682#M74807</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-21T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907686#M74808</link>
      <description>&lt;P&gt;Code give above worked for me,, made it more simplified ,try it.Hope it works for you&lt;/P&gt;
&lt;P&gt;for each file in filelist('MENTION PATH HERE\*.csv')&lt;BR /&gt;if not wildmatch('$(file)', '*Elenco Flussi*') then&lt;BR /&gt;t: load * from [$(file)] (txt);&lt;BR /&gt;end if&lt;BR /&gt;next&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907686#M74808</guid>
      <dc:creator>durgesh22</dc:creator>
      <dc:date>2022-03-21T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907770#M74817</link>
      <description>Yes, i replace with the correct info.&lt;BR /&gt;I try with your second option but I've the same error:&lt;BR /&gt;&lt;BR /&gt;Caricamento dati iniziato&lt;BR /&gt;xxx_yyy_AGG_S1_FIN_202001_20211129124442_1 Linee recuperate: 502 02698620347_01219980529_AGG_S1_FIN_202001_20211129124442_1 &amp;lt;&amp;lt; xxx_yyy_AGG_S1_FIN_202002_20211129124442_1 Linee recuperate: 999 02698620347_01219980529_AGG_S1_FIN_202001_20211129124442_1 &amp;lt;&amp;lt; xxx_yyy_AGG_S1_FIN_202003_20211129124442_1 Linee recuperate: 1.492 02698620347_01219980529_AGG_S1_FIN_202001_20211129124442_1 &amp;lt;&amp;lt; xxx_yyy_AGG_S1_FIN_202004_20211129124442_1 Linee recuperate: 1.980&lt;BR /&gt;Si è verificato il seguente errore:&lt;BR /&gt;Field 'Piva_Udb' not found&lt;BR /&gt;L'errore si è verificato qui:&lt;BR /&gt;LOAD Piva_Udb&amp;amp;'|'&amp;amp;Cod_Remi&amp;amp;'|'&amp;amp;Cod_prof_prel_std&amp;amp;'|'&amp;amp;Trattamento&amp;amp;'|'&amp;amp;Annomese&amp;amp;'|'&amp;amp;pdr as key, pdr&amp;amp;'|'&amp;amp;Annomese as key_flussi, pdr, Prelievo, Piva_Udb, Dtg, Cod_Remi, Id_regione_climatica, Cod_prof_prel_std, Trattamento, Tipo_cliente, Sessione, Annomese, filename() as NomeFile FROM [lib://SCR_Shared_Folder/Dettaglio PDR - Flussi/*.csv] (txt, codepage is 28591, embedded labels, delimiter is ';', msq)&lt;BR /&gt;I dati sono stati caricati. Correggere l'errore e riprovare a caricare.&lt;BR /&gt;&lt;BR /&gt;If you read the error message, qlik is able to load files but stops when it finds files '*Elenco Flussi*'&lt;BR /&gt;&lt;BR /&gt;When you read 'Field 'Piva_Udb' not found' it's because the paths the 2 type of files are different&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2022 15:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907770#M74817</guid>
      <dc:creator>EMME_DR</dc:creator>
      <dc:date>2022-03-21T15:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: where not WildMatch()</title>
      <link>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907833#M74823</link>
      <description>&lt;P&gt;What you did is not equally to my suggestion. Please follow it more closely.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 17:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/where-not-WildMatch/m-p/1907833#M74823</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-21T17:42:29Z</dc:date>
    </item>
  </channel>
</rss>

