<?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: Add number to a date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120208#M899575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Sunny. What i am trying to achieve here is the comparison between Sales of Current Year with prior Year. And for Current Year,&lt;/P&gt;&lt;P&gt;YTD is &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FISCALYEAR={"$(=YearofToday)"},DateNum={"&amp;gt;=$(=Num(FISCALYEARSTART))&amp;lt;=$(=Num(Today()))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;But for prior year, i want the Sales to be calculated for the same number of days of the Current Year for which the YTD was calculated , but for the Proevious year. Eg: Assume, CY YTD the no of days is 200 from the FISCAL Year STRT to today.&lt;/P&gt;&lt;P&gt;So, my Prior Year YTD should start from 2015's FISCAL Year START and add the no of days 200, and sum the Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck at adding the no of days and it is not working. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 21:00:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-21T21:00:47Z</dc:date>
    <item>
      <title>Add number to a date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120206#M899573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add a number stored in a variable or a column in the table to a date and this is to calculate the Sum for prior year.&lt;/P&gt;&lt;P&gt;But none of the below seems to work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(MyDate+$(vNoofDays))&lt;/P&gt;&lt;P&gt;Date(Date(MyDate,'MM/DD/YYYY')+ColumnName)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date(Date(MyDate,'MM/DD/YYYY')+ColumnName,'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However, if i tried to add a number, it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help.&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/Add-number-to-a-date/m-p/1120206#M899573</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add number to a date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120207#M899574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your date correctly interpreted as date field? Check these links out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then once those are fixed, you might be able to just do this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MyDate + vNoofDays)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 20:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120207#M899574</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-21T20:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add number to a date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120208#M899575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Sunny. What i am trying to achieve here is the comparison between Sales of Current Year with prior Year. And for Current Year,&lt;/P&gt;&lt;P&gt;YTD is &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FISCALYEAR={"$(=YearofToday)"},DateNum={"&amp;gt;=$(=Num(FISCALYEARSTART))&amp;lt;=$(=Num(Today()))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;But for prior year, i want the Sales to be calculated for the same number of days of the Current Year for which the YTD was calculated , but for the Proevious year. Eg: Assume, CY YTD the no of days is 200 from the FISCAL Year STRT to today.&lt;/P&gt;&lt;P&gt;So, my Prior Year YTD should start from 2015's FISCAL Year START and add the no of days 200, and sum the Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck at adding the no of days and it is not working. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 21:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120208#M899575</guid>
      <dc:creator />
      <dc:date>2016-07-21T21:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add number to a date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120209#M899576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be,&lt;/P&gt;&lt;P&gt;Dim: &lt;SPAN style="font-size: 13.3333px;"&gt; YourDateField &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression: Date( YourDateField + vNoofdays)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 06:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120209#M899576</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-07-22T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add number to a date</title>
      <link>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120210#M899577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why not change the fiscal year to be pervious yr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FISCALYEAR={"$(=&lt;STRONG&gt;PrYearofToday&lt;/STRONG&gt;)"},DateNum={"&amp;gt;=$(=Num(FISCALYEARSTART))&amp;lt;=$(=Num(Today()))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anagha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 07:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-number-to-a-date/m-p/1120210#M899577</guid>
      <dc:creator>anagharao</dc:creator>
      <dc:date>2016-07-22T07:05:10Z</dc:date>
    </item>
  </channel>
</rss>

