<?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: SQL DATEADD Equivalent in Load Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401038#M1169537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the AddMonths() or AddYears() function in QlikView, and you can also use the Date() function with an expression as parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Today() - 7 * $(vWeekOffset)) AS Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 13:44:33 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-09-12T13:44:33Z</dc:date>
    <item>
      <title>SQL DATEADD Equivalent in Load Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401037#M1169536</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 would like to use something that do the same thing as dateadd(sql) but in the load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;dateadd() as help,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401037#M1169536</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL DATEADD Equivalent in Load Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401038#M1169537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the AddMonths() or AddYears() function in QlikView, and you can also use the Date() function with an expression as parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Today() - 7 * $(vWeekOffset)) AS Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401038#M1169537</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-12T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL DATEADD Equivalent in Load Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401039#M1169538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for week =1 to 54&lt;/P&gt;&lt;P&gt;DATEADD(week,1,'2010/01/01')&lt;/P&gt;&lt;P&gt;DATEADD(week,2,'2010/01/01')&lt;/P&gt;&lt;P&gt;DATEADD(week,3,'2010/01/01')&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;'2010/01/01'=Year'/01/01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(week(Today()) + 1 ) AS Date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401039#M1169538</guid>
      <dc:creator />
      <dc:date>2012-09-12T14:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL DATEADD Equivalent in Load Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401040#M1169539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be very similar to my example above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13474615440157207" jivemacro_uid="_13474615440157207"&gt;&lt;P&gt;Weeks:&lt;/P&gt;&lt;P&gt;LOAD Date(WeekStart(Today()) + (7 * RecNo())) AS Week&lt;/P&gt;&lt;P&gt;AUTOGENERATE 54;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search the QlikCommunity for "Master Calendar", there are lots of good examples, more simple and more complex. Check &lt;A _jive_internal="true" href="https://community.qlik.com/community.qlik.com/qlikviews/1075"&gt;this app&lt;/A&gt; that builds a master calendar and uses it in expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-DATEADD-Equivalent-in-Load-Qlikview/m-p/401040#M1169539</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-12T14:57:29Z</dc:date>
    </item>
  </channel>
</rss>

