<?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: How to use date functions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659112#M1077167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your best bet is probably Set Analysis, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MyDate={"&amp;gt;=$(=MonthStart(AddMonths(max(MyDate), -1)))"}&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MyDate={"&amp;gt;=$(=Date(max(MyDate) - 10))"}&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, point in time reporting, especially matching dates in Set Analysis can be slightly tricky, so I would suggest looking at a few examples.&amp;nbsp; This is one I have put together that you may find useful:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/docs/DOC-4313"&gt;QlikView App: Set Analysis - Prior Period Comparison&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steve&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 08:09:03 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-07-11T08:09:03Z</dc:date>
    <item>
      <title>How to use date functions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659110#M1077165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I want to capture last year or last month or last week or last 10 days result, how to use data functions in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659110#M1077165</guid>
      <dc:creator />
      <dc:date>2014-07-11T07:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date functions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659111#M1077166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you have to make it a bit more clear about your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 07:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659111#M1077166</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-11T07:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date functions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659112#M1077167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your best bet is probably Set Analysis, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MyDate={"&amp;gt;=$(=MonthStart(AddMonths(max(MyDate), -1)))"}&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt;MyDate={"&amp;gt;=$(=Date(max(MyDate) - 10))"}&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, point in time reporting, especially matching dates in Set Analysis can be slightly tricky, so I would suggest looking at a few examples.&amp;nbsp; This is one I have put together that you may find useful:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/docs/DOC-4313"&gt;QlikView App: Set Analysis - Prior Period Comparison&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steve&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 08:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659112#M1077167</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-07-11T08:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use date functions?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659113#M1077168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to go for SET analysis or you can use the variables with the data functions for obtain the last date values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 08:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-date-functions/m-p/659113#M1077168</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-11T08:15:24Z</dc:date>
    </item>
  </channel>
</rss>

