<?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: Using rolling dates and setting them as variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427083#M490014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I love you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Nov 13, 2012 at 3:02 PM, Jonathan Dienst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 06:12:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-13T06:12:29Z</dc:date>
    <item>
      <title>Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427081#M490012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I'm trying to figure out the sales for each of my clients in the last 90, 180, 365 days. I'd like to store the sales in those time-frames as variables.&lt;/P&gt;&lt;P&gt;I was trying something like: sum($&amp;lt;{Orderdate &amp;gt;= today()-365, Orderdate &amp;lt;= today()} $(vSales)) but to no avail...&lt;/P&gt;&lt;P&gt;Thanks a lot in advance !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 01:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427081#M490012</guid>
      <dc:creator />
      <dc:date>2012-11-13T01:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427082#M490013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the correct syntax for your statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Orderdate = {"&amp;gt;=$(=today()-365) &amp;lt;=$(=today())"}&amp;gt;} $(vSales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that OrderDate must be in the same format as your default format (as set in the environment Set statements at the top of your load script), and the expression in $(vSales) must not contain an aggregate function (such as Max or Sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 06:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427082#M490013</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-13T06:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427083#M490014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I love you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Nov 13, 2012 at 3:02 PM, Jonathan Dienst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 06:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427083#M490014</guid>
      <dc:creator />
      <dc:date>2012-11-13T06:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427084#M490015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;sum ({&amp;lt;Orderdate={"&amp;gt;=$(=date(only(today())-365,'M/D/YYYY')) &amp;lt;$(=date(only(today()),'M/D/YYYY'))"}&amp;gt;} $(vSales))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 06:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427084#M490015</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-11-13T06:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427085#M490016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another question as a follow-up.&lt;/P&gt;&lt;P&gt;I want to try to replace today() but a variable that is set on a fixed date&lt;/P&gt;&lt;P&gt;(let's say 2012/10/31). I've set up vDate = 2012/10/31 and replace today()&lt;/P&gt;&lt;P&gt;in the formula you gave me with $(vDate) but it doesn't seem to work...&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427085#M490016</guid>
      <dc:creator />
      <dc:date>2012-11-13T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427086#M490017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your default date format YYYY/MM/DD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDate = Date#('2012/10/31');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum({&amp;lt;Orderdate = {"&amp;gt;=$(=Date(vDate-365)) &amp;lt;=$(Date(vDate))"}&amp;gt;} $(vSales))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427086#M490017</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-13T07:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427087#M490018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My date format is supposed:&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY/MM/DD';&lt;/P&gt;&lt;P&gt;I've set up vDate as Date#('2012/10/31')&lt;/P&gt;&lt;P&gt;Then I entered sum({} $(vSales)) but I only get zeros...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Nov 13, 2012 at 4:09 PM, Jonathan Dienst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427087#M490018</guid>
      <dc:creator />
      <dc:date>2012-11-13T07:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427088#M490019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try your expression in a pivot table without dimension, and bring the cursor on top of your expression, whether it gives the correct dates in needed format,&lt;/P&gt;&lt;P&gt;I think there is a format issue with OrderDate and the Variable Date, &lt;/P&gt;&lt;P&gt;if you correct it, it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDate = &lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(2012,10, 31), 'YYYY/MM/DD')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;sum({&amp;lt;OrderDate={"&amp;gt;=$(=date(vDATE-365,'YYYY/MM/DD')) &amp;lt;$(=date(vDATE,'YYYY/MM/DD'))"}&amp;gt;} $(vSales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Ren&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427088#M490019</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-11-13T07:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427089#M490020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be working ! Thanks a lot, that's really awesome !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 09:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427089#M490020</guid>
      <dc:creator />
      <dc:date>2012-11-13T09:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427090#M490021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an additional question... I want to group value in a certain way:&lt;/P&gt;&lt;P&gt;for example, if the the month of first purchase was less than 1 month ago&lt;/P&gt;&lt;P&gt;(this is stored inside vSincenew), then I was to have the data name "New&lt;/P&gt;&lt;P&gt;customer", if vSincenew &amp;lt; 3, "Acquired &amp;gt; 3 months ago" etc...&lt;/P&gt;&lt;P&gt;Is there an easy way to do this ?&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 01:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427090#M490021</guid>
      <dc:creator />
      <dc:date>2012-11-14T01:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using rolling dates and setting them as variables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427091#M490022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the expretion like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I selected Year or (Year and month), I want to find last 365 days sales (from max selected value to 365 days before)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please send an example or set analyze ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-rolling-dates-and-setting-them-as-variables/m-p/427091#M490022</guid>
      <dc:creator>makkemik</dc:creator>
      <dc:date>2014-04-28T09:22:43Z</dc:date>
    </item>
  </channel>
</rss>

