<?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: Date Variable in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740509#M667413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Shipmentdate={"&amp;lt;=$(=vYesterday)"} &amp;gt;}SHP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2014 08:39:51 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2014-11-28T08:39:51Z</dc:date>
    <item>
      <title>Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740507#M667411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I load my data from a MS Access Database. One of the fields is 'Shipmentdate'. I load this field in my script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;date(Shipmentdate) as Shipmentdate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also create a variable, returning the date of yesterday:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LET vYesterday = date(Today()-1);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I create a table, where I use this as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;Shipmentdate={'&amp;lt;=$(#=vYesterday)'} &amp;gt;} SHP)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns all zero's, whilst there is definitely date on yesterday.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Please find below 2 screenshots (to show you the outcome of my scripting):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Listbox of Shipmentdate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Listbox Shipmentdate.png" class="jive-image" src="/legacyfs/online/72313_Listbox Shipmentdate.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Variable Overview:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Variable Overview.png" class="jive-image" src="/legacyfs/online/72335_Variable Overview.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Anybody have any idea what I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance for the help once again!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740507#M667411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740508#M667412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, can you try?:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;Shipmentdate={'&amp;lt;=$(=vYesterday)'}&amp;gt;} SHP)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740508#M667412</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-28T08:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740509#M667413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Shipmentdate={"&amp;lt;=$(=vYesterday)"} &amp;gt;}SHP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740509#M667413</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-11-28T08:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740510#M667414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben,&lt;/P&gt;&lt;P&gt;thanks for the response. However, the formula suggested returns my SHP for the entire year, not only yesterday...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740510#M667414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740511#M667415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change the compare from '&amp;lt;=' to '=', or remove it:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;=sum({$&amp;lt;Shipmentdate={'$(=vYesterday)'}&amp;gt;} SHP)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740511#M667415</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-28T08:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740512#M667416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing it did the trick indeed, thanks for the quick help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Variable-in-Set-Analysis/m-p/740512#M667416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T08:52:18Z</dc:date>
    </item>
  </channel>
</rss>

