<?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 How to write the Date Expressions with the Offset -1 for day/Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058850#M354699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data displayed on the report have an offset of -1, ie, on April 19th, the data is as of April 18th. &lt;/P&gt;&lt;P&gt;Need to&amp;nbsp; offset the day by ‘-1’.&lt;/P&gt;&lt;P&gt;When the report is opened, the month filter should be on March not on April. You need to&amp;nbsp; offset the day by ‘-1’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using this variable able to display the Previous day.&lt;/P&gt;&lt;P&gt;How to write in if else conditional statement if(April-1)-&amp;gt;March&lt;/P&gt;&lt;P&gt;LET vRefreshDate = Today()-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 11:19:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-19T11:19:08Z</dc:date>
    <item>
      <title>How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058850#M354699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data displayed on the report have an offset of -1, ie, on April 19th, the data is as of April 18th. &lt;/P&gt;&lt;P&gt;Need to&amp;nbsp; offset the day by ‘-1’.&lt;/P&gt;&lt;P&gt;When the report is opened, the month filter should be on March not on April. You need to&amp;nbsp; offset the day by ‘-1’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using this variable able to display the Previous day.&lt;/P&gt;&lt;P&gt;How to write in if else conditional statement if(April-1)-&amp;gt;March&lt;/P&gt;&lt;P&gt;LET vRefreshDate = Today()-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 11:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058850#M354699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T11:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058851#M354700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRefreshMonth = Month(Today() - 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or for date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRefreshDate = Date(Today() - 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 11:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058851#M354700</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-19T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058852#M354701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=date(urdate-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=Date(Today()-1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 11:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058852#M354701</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-19T11:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058853#M354702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I' Using the vToday() then above things will work.I have a Column with Cal_Year.&lt;/P&gt;&lt;P&gt;By max(Cal_Taer) i can get the max-Month,date but how to put in the if else logic if(vday=1,vmonth=May,vday=31,vMonth=April)-Actually i'm trying in this way but no luck.Expecting solution as stated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 11:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058853#M354702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T11:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058854#M354703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't seem like a good way, but may be this:&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;&lt;STRONG&gt;If(vday = 1 and vmonth = 'May' and vday = 31, 'April')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 11:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058854#M354703</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-19T11:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058855#M354704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,I didn't explained in good way.I kept the expression for Understandable.&lt;/P&gt;&lt;P&gt;I'm expecting in dynamic way if every month start it should take the prior month last date.&lt;/P&gt;&lt;P&gt;Expecting in the multi conditional statement in a Text Object.&lt;/P&gt;&lt;P&gt;How can the above Scenario can be achieved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058855#M354704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058856#M354705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Month(MonthName(Today())-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058856#M354705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058857#M354706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a sample you can share? I am not entirely sure how your data looks like&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058857#M354706</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-19T12:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058858#M354707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;=Date(MonthStart(Today())-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058858#M354707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058859#M354708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Open of the Document need to get the Year,Month.&lt;/P&gt;&lt;P&gt;Attached the sample,implemented the Triggers .&lt;/P&gt;&lt;P&gt;My Question is the Variable "vRefreshMonth = Month(Today() - 1)"&lt;/P&gt;&lt;P&gt;,will always give the expect result like below or is there any other way to achieve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 292px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="86"&gt;Refresh Date&lt;/TD&gt;&lt;TD width="97"&gt;Expected Date&lt;/TD&gt;&lt;TD width="109"&gt;Expected Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;4/19/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;4/18/2016&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Apr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/1/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/31/2016&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Apr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/2/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/1/2016&lt;/TD&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058859#M354708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T15:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the Date Expressions with the Offset -1 for day/Month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058860#M354709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is what it will give you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRefreshMonth = Month(Today() - 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vRefreshDate = Date(Today() - 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Date-Expressions-with-the-Offset-1-for-day/m-p/1058860#M354709</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-19T15:04:14Z</dc:date>
    </item>
  </channel>
</rss>

