<?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: Current Date vs Previous Day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816291#M1027554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting Today's date use Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting Yesterday's date use Date(Today() - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use this in Set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Date:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateFieldName={'$(=Today())'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Yesterday Date:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateFieldName={'$(=Date(Today() - 1))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 03:48:28 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-02-17T03:48:28Z</dc:date>
    <item>
      <title>Current Date vs Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816289#M1027552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Crystal Reports I am able to use the Current() function to get today's date and then I can say Current()-1 to get the previous day. How can I accomplish the same thing in Qlikview:? Better yet, how can I make previous day (NOT previous month or previous year) as a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 20:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816289#M1027552</guid>
      <dc:creator />
      <dc:date>2015-02-16T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date vs Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816290#M1027553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand this is what you are trying to accomplish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define your variable like this may be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vPrevious = Date(Num(Today()) -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not what you are looking for, then please elaborate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 02:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816290#M1027553</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-17T02:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current Date vs Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816291#M1027554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting Today's date use Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting Yesterday's date use Date(Today() - 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use this in Set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Date:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateFieldName={'$(=Today())'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Yesterday Date:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateFieldName={'$(=Date(Today() - 1))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 03:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Date-vs-Previous-Day/m-p/816291#M1027554</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-17T03:48:28Z</dc:date>
    </item>
  </channel>
</rss>

