<?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 select Data Ranges for File Exclusion and Copy Files to another Folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12663#M789829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, your solution to remove the junk files works perfectly as desired &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One doubt though: With regards to separately storing the information of the files that are not-excluded (i.e. the name of the files) in a .separate text file , I tried using the Store function, but I'm only able to save the outcome of the file exclusion and the complete list of file names in the directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would we be able to store only file names that are not-excluded with this code?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193368" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193368_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other test code as well, since FileExclusion is not defined as a field value, it is not recognised and therefore, iton reload, it throws up an error and does not store the selected data contents.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193369" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/193369_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2018 11:11:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-14T11:11:50Z</dc:date>
    <item>
      <title>How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12660#M789826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Anonymous All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query with regard to setting a conditional expression and also enabling, copying files that I've not been able to figure out and require your help from the Qlik community to resolve the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;My intention to use Qlikview is to suitably display data collected from a sensor. When reading this data continuously from a sensor, sometimes there are a number of files containing junk Information that distort the actual data to be analysed.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193223" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193223_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Eg: In the above figure, the files for which the data is marked in the red box are considered to be junk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My intention is to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;a)&lt;/STRONG&gt; Exclude those files that correspond to the junk data (Through the use of conditional expressions - Refer attached QVW) from being imported&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Right now, in the Where Statement, I'm able to view the chart only for conditional expressions that are singular &lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(For Eg: (&lt;SPAN style="color: #800000;"&gt;"X [ms]"&lt;/SPAN&gt;&amp;lt; 1000 or&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;"X [ms]"&amp;gt;&lt;/SPAN&gt; 8500) and Y2&amp;gt;0).&lt;/SPAN&gt; However, I'm not able to set a condition for in-between junk data range values (Eg: &lt;SPAN style="color: #800000;"&gt;Region highlighted by red box in diagram&lt;/SPAN&gt; i.e. When "&lt;SPAN style="color: #800000;"&gt;X [ms]" is between 3900 and 5000 and Y2&amp;lt;2000).&amp;nbsp; I tried writing it as (&lt;SPAN style="color: #800000;"&gt;"X [ms]"&amp;gt;&lt;/SPAN&gt; 3900 or &lt;SPAN style="color: #800000;"&gt;"X [ms]"&amp;lt;5000) and Y2&amp;lt;2000), but it was faulty.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;How must the expression be re-written to achieve the same?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b)&lt;/STRONG&gt; Copy only those files that are imported and place it in a separate Folder (Eg: CleanData) or if not possible, only those files names of the loaded data and write that data onto a .txt file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried implementing a batch file to copy the files with each read similar to the one in diagram below, however, this is a very iterative process in the fact that for each Loop execution, a prompt window opens that needs to be clicked to proceed with ist execution and is not feasible when loading 100's of files. I tried writing this batch execution outside the loop, but it is incorrect and doesn't work correctly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What could be the best method to achieve this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193224" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/193224_pastedImage_11.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any further information is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to hearing from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/61824" target="_blank"&gt;marcowedel&lt;/A&gt;,‌ &lt;A href="https://community.qlik.com/qlik-users/27943" target="_blank"&gt;marcus_sommer&lt;/A&gt;, &lt;A href="https://community.qlik.com/qlik-users/4003" target="_blank"&gt;hic&lt;/A&gt;, &lt;A href="https://community.qlik.com/qlik-users/21667" target="_blank"&gt;cleveranjos&lt;/A&gt; - Any suggestions/ inputs would be most valuable &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Test files and script currently used for this implementation are attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12660#M789826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12661#M789827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution to exclude distorted files could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_291149_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193331_QlikCommunity_Thread_291149_Pic1.JPG" style="height: 385px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_291149_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/193332_QlikCommunity_Thread_291149_Pic2.JPG" style="height: 383px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15185612314253547 jive_text_macro" jivemacro_uid="_15185612314253547"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD "X [ms]",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileBaseName() as FileName&lt;/P&gt;
&lt;P&gt;FROM &lt;D&gt; (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/D&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabFileExclusion:&lt;/P&gt;
&lt;P&gt;LOAD FileName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Min("X [ms]"&amp;gt; 3900 and "X [ms]"&amp;lt;5000 and Y1&amp;lt;2000), 'Exclude', 'Non-Exclude') as FileExclusion&lt;/P&gt;
&lt;P&gt;Resident table1&lt;/P&gt;
&lt;P&gt;Group By FileName;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12661#M789827</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-02-13T22:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12662#M789828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one way to exclude those files might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15185621444195581" jivemacro_uid="_15185621444195581"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD "X [ms]",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileBaseName() as FileName&lt;/P&gt;
&lt;P&gt;FROM &lt;D&gt; (txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/D&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Right Join&lt;/P&gt;
&lt;P&gt;LOAD FileName&lt;/P&gt;
&lt;P&gt;Where not FileExclusion;&lt;/P&gt;
&lt;P&gt;LOAD FileName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min("X [ms]"&amp;gt; 3900 and "X [ms]"&amp;lt;5000 and Y1&amp;lt;2000) as FileExclusion&lt;/P&gt;
&lt;P&gt;Resident table1&lt;/P&gt;
&lt;P&gt;Group By FileName;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12662#M789828</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-02-13T22:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12663#M789829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, your solution to remove the junk files works perfectly as desired &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One doubt though: With regards to separately storing the information of the files that are not-excluded (i.e. the name of the files) in a .separate text file , I tried using the Store function, but I'm only able to save the outcome of the file exclusion and the complete list of file names in the directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would we be able to store only file names that are not-excluded with this code?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193368" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193368_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other test code as well, since FileExclusion is not defined as a field value, it is not recognised and therefore, iton reload, it throws up an error and does not store the selected data contents.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="193369" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/193369_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12663#M789829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12664#M789830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the Right Join script part the FileName field only contains non-excluded files, so you should be able to store the remaining FileNames and related data as is.&lt;/P&gt;&lt;P&gt;The FileExclusion field only is used as a temporary flag in my example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 21:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12664#M789830</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-02-14T21:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Data Ranges for File Exclusion and Copy Files to another Folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12665#M789831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I'm still quite confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried earlier to use the store function with the filename field but there were a lot of copies of each of the considered files within the output file ( One file entry filled 2048 rows - Same as the total no of rows containing data within the file). I have attached the Output file (FinalTest.csv) and please find below the code used to execute the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the numerous queries, but just want to clear my understanding and improve my learning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193474_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 08:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Data-Ranges-for-File-Exclusion-and-Copy-Files-to/m-p/12665#M789831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T08:12:55Z</dc:date>
    </item>
  </channel>
</rss>

