<?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: Load WHERE = vVariable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37867#M773370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still having issues. I think with the way it is reading the variable in the script for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 12:43:23 GMT</pubDate>
    <dc:creator>greend21</dc:creator>
    <dc:date>2018-05-16T12:43:23Z</dc:date>
    <item>
      <title>Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37858#M773354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this script that sets my variable, and if I check the variable within the program I see it is correct, in this case 5/15/18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load Max(Date([CheckDate])) as MaxControlDate&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/Controls.qvd](qvd);&lt;/P&gt;&lt;P&gt;LET vMaxCtrlDate = Peek('MaxControlDate');&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying other things I've seen online but can't seem to get it right. I only want to load the info where the CheckDate is = to vMaxCtrlDate. Would anyone know how I get this to work? Each thing I try results in 0 records being loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Controls]:&lt;/P&gt;&lt;P&gt;LOAD Date(CheckDate) as MaxControlDate,&lt;/P&gt;&lt;P&gt; Recon&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/Controls.qvd](qvd)&lt;/P&gt;&lt;P&gt;Where Date(CheckDate) = '$(=$(vMaxCtrlDate))'&lt;/P&gt;&lt;P&gt;;&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/Load-WHERE-vVariable/m-p/37858#M773354</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37859#M773356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try this? Make sure your Checkdate and vMaxCtrlDate are in same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vMaxCtrlDate = &lt;STRONG style="color: #ff6600;"&gt;Date&lt;/STRONG&gt;(Peek('MaxControlDate'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Controls]:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Date(CheckDate) as MaxControlDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Recon&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://QVD/Controls.qvd](qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Date(CheckDate) = &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;'$(vMaxCtrlDate)'; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 19:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37859#M773356</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-05-15T19:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37860#M773358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid discrepancies, convert the date to a number. This'll be easy for you to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like so Num(Date(Insert_Date_Here)) = some number 45421&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. Num(Date(5/15/2018)) = 43235&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 19:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37860#M773358</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2018-05-15T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37861#M773360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[Controls]:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD Date(CheckDate) as MaxControlDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Recon&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM [lib://QVD/Controls.qvd](qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Where CheckDate = Num($(vMaxCtrlDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 08:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37861#M773360</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-16T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37862#M773362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried that and it does not load anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37862#M773362</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2018-05-16T12:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37863#M773364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue with this is the records I'm loading in are date and timestamp. I'm converting to date to drop the timestamp. Or does this not truly drop the timestamp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37863#M773364</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2018-05-16T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37864#M773366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I would try without date function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Max([CheckDate]) as MaxControlDate&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where CheckDate = $(vMaxCtrlDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that dates are in a numeric form&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37864#M773366</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-16T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37865#M773367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share app and QVD to play around?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37865#M773367</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2018-05-16T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37866#M773369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've changed the vairable to be Floor(Max(Checkdate) so it stays in number form and loses the decimal from the timestamp. I'm still having trouble with the Where clause though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37866#M773369</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2018-05-16T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37867#M773370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still having issues. I think with the way it is reading the variable in the script for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37867#M773370</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2018-05-16T12:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37868#M773371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up going a different route where I'm loading in the last 3 days to limit the data and always allow for there to be info in the load and just use set analysis in my KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;CheckDate={'$(=Max(CheckDate))'}&amp;gt;}Recon)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I'm marking this as correct since I no longer need help, but it does not solve the original issue.*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 12:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37868#M773371</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2018-05-16T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load WHERE = vVariable</title>
      <link>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37869#M773372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try preceding load like below:&lt;/P&gt;&lt;P&gt;Can we know your date format you are getting in your Check Date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load Floor(Max(Date#([Check Date], 'M/DD/YYYY hh:mm:ss'))) as MaxControlDate&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/Controls.qvd](qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxCtrlDate = Peek('MaxControlDate');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Controls]:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE MaxControlDate = '$(vMaxCtrlDate)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; Date([Check Date]) AS MaxCheckDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Floor(Max(Date#([Check Date], 'M/DD/YYYY hh:mm:ss'))) as MaxControlDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recon&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/Controls.qvd](qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 14:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-WHERE-vVariable/m-p/37869#M773372</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-05-16T14:21:48Z</dc:date>
    </item>
  </channel>
</rss>

