<?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 Load selected dates from qvd file. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245582#M93615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think following code will help you. Instead of placing those dates in variable, place them in an inline table. &lt;/P&gt;&lt;P&gt;Table C will contains all the records from Table A except those which are found in Table B. &lt;/P&gt;&lt;P&gt;IE, Table C = Table A - Table B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Customer, Code&lt;/P&gt;&lt;P&gt;A, 1000&lt;/P&gt;&lt;P&gt;B, 2000&lt;/P&gt;&lt;P&gt;C, 3000&lt;/P&gt;&lt;P&gt;D, 4000&lt;/P&gt;&lt;P&gt;E, 5000&lt;/P&gt;&lt;P&gt;F F,6000&lt;/P&gt;&lt;P&gt;F F,6000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Client, Number&lt;/P&gt;&lt;P&gt;B, 2000&lt;/P&gt;&lt;P&gt;D, 4000&lt;/P&gt;&lt;P&gt;G, 7000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableC:&lt;/P&gt;&lt;P&gt;LOAD Customer AS Cust,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code AS Cod&lt;/P&gt;&lt;P&gt;RESIDENT TableA WHERE NOT EXISTS(Client, Customer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 10:00:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-03T10:00:51Z</dc:date>
    <item>
      <title>Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245580#M93613</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;I've a Date field in format of timestamp. In one variable i'm storing different number of dates.&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDates=07-01-2011,07-02-2011,07-05-2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Now when i loading the qvd file i want to write where condition where the date is equal to all dates of variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from table.qvd&lt;/P&gt;&lt;P&gt;where match(Date,'$(vDate)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- But the match function is not working for me. Can anyone help where i'm missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 09:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245580#M93613</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-08-03T09:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245581#M93614</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;Dates as such are interpreted as text, so each value needs to be single quoted in order to work in a match function. Take the following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SET vDates = '01/01/2011','03/05/2011'; // Each date is comma separated, single quoted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date, ID&lt;/P&gt;&lt;P&gt;01/01/2011, A&lt;/P&gt;&lt;P&gt;03/05/2011, B&lt;/P&gt;&lt;P&gt;06/07/2011, C&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;WHERE Match(Date, $(vDates));&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will only load IDs A and B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 09:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245581#M93614</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-03T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245582#M93615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think following code will help you. Instead of placing those dates in variable, place them in an inline table. &lt;/P&gt;&lt;P&gt;Table C will contains all the records from Table A except those which are found in Table B. &lt;/P&gt;&lt;P&gt;IE, Table C = Table A - Table B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Customer, Code&lt;/P&gt;&lt;P&gt;A, 1000&lt;/P&gt;&lt;P&gt;B, 2000&lt;/P&gt;&lt;P&gt;C, 3000&lt;/P&gt;&lt;P&gt;D, 4000&lt;/P&gt;&lt;P&gt;E, 5000&lt;/P&gt;&lt;P&gt;F F,6000&lt;/P&gt;&lt;P&gt;F F,6000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Client, Number&lt;/P&gt;&lt;P&gt;B, 2000&lt;/P&gt;&lt;P&gt;D, 4000&lt;/P&gt;&lt;P&gt;G, 7000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableC:&lt;/P&gt;&lt;P&gt;LOAD Customer AS Cust,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code AS Cod&lt;/P&gt;&lt;P&gt;RESIDENT TableA WHERE NOT EXISTS(Client, Customer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 10:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245582#M93615</guid>
      <dc:creator />
      <dc:date>2011-08-03T10:00:51Z</dc:date>
    </item>
    <item>
      <title>Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245583#M93616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks miguel it is working in your code. But it is not working with my qvd file. I'll cross check every thing where i'm missing and let you now when it's works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 10:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245583#M93616</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-08-03T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245584#M93617</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;Note that in the Match() function I'm not quoting the $(vDates) variable, since it's already quoted the values within.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 10:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245584#M93617</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-03T10:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245585#M93618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I am also facing the same problem&lt;/P&gt;&lt;P&gt;I am not able to load the data with where condition by passing variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the attached files of myne and let me know how they work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 10:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245585#M93618</guid>
      <dc:creator />
      <dc:date>2011-08-03T10:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245586#M93619</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;First, please, since it's a different question, create a new post with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, there are two things here, but it all comes to formatting. On your first document, the variable vDates needs to return comma separated, single quoted dates to the variable. So replace in the Variable Overview your vDates variable from using GetFieldSelections to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Chr(39) &amp;amp; Concat(DISTINCT CaptureDate, Chr(39) &amp;amp; Chr(44) &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have the dates as to be used in the Match function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Output document, use the Macth() function as shown above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Where Match(Date(Floor(CaptureDateTime)), $(vDates));&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor() function is needed because the actual field has not only dates but times as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 11:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245586#M93619</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-03T11:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245587#M93620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;I'm facing with qvd file . I'm attaching my qvw file and qvd can you check once plz...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 11:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245587#M93620</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2011-08-03T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load selected dates from qvd file.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245588#M93621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's funny how all of you are having the same exact issues with the same exact field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, do as I mentioned above to get the formatting properly using Floor() to get only the date part (not the time part)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Match(Date(Floor(CaptureDateTime)), $(vTotalDates))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make sure the variable stores the same format of date (for example "MM-DD-YYYY").&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;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Nota Bene&lt;/STRONG&gt;: Please read the answers given to other users on the same subject &lt;STRONG&gt;prior &lt;/STRONG&gt;to ask the same twice. Hence all of us will save time and keep the threads tidier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 11:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-selected-dates-from-qvd-file/m-p/245588#M93621</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-03T11:56:07Z</dc:date>
    </item>
  </channel>
</rss>

