<?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: rolling seven days Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450076#M557977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&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;Leveransdatum={'$(=Date(today()-7,'MM/DD/YYYY')'}&amp;gt;}[Levererat Antal])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I am assuming that &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Leveransdatum&lt;/SPAN&gt; has date format like &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MM/DD/YYYY&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 08:32:17 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2013-06-07T08:32:17Z</dc:date>
    <item>
      <title>rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450075#M557976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i would like to calculate a value;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rolling seven days&amp;nbsp;&amp;nbsp; (today-7 days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(Levererat Antal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following syntax which is incorrect i see;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Leveransdatum={today()-7}&amp;gt;}[Levererat Antal])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450075#M557976</guid>
      <dc:creator />
      <dc:date>2013-06-07T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450076#M557977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&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;Leveransdatum={'$(=Date(today()-7,'MM/DD/YYYY')'}&amp;gt;}[Levererat Antal])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I am assuming that &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Leveransdatum&lt;/SPAN&gt; has date format like &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;MM/DD/YYYY&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450076#M557977</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-06-07T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450077#M557978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; i still have syntax error, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42272" class="jive-image-thumbnail jive-image" onclick="" alt="Syntax error.png" src="/legacyfs/online/42272_Syntax error.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450077#M557978</guid>
      <dc:creator />
      <dc:date>2013-06-07T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450078#M557979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, there is an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this one:&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;Leveransdatum={'$(=Date(today()-7,'MM/DD/YYYY'))'}&amp;gt;}[Levererat Antal])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450078#M557979</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-06-07T08:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450079#M557980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi it is not working unfortunately,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to create a new variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have already a variable that vToday = Today() -7;&lt;/P&gt;&lt;P&gt;can i use this in the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Leveransdatum={'$(=vToday,'YYYY-MM-DD)'}&amp;gt;}[Levererat Antal])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date format is also YYYY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bradley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450079#M557980</guid>
      <dc:creator />
      <dc:date>2013-06-07T08:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450080#M557981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;You can try with the below code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: calibri, verdana, arial, sans-serif; background-color: #ffffff;"&gt;sum({&amp;lt;date={"&amp;gt;=$(=AddMonths(Max(date-6),0))&amp;lt;=$(=Max(date))"}&amp;gt;} Value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: calibri, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: calibri, verdana, arial, sans-serif; background-color: #ffffff;"&gt;Tom&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: calibri, verdana, arial, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450080#M557981</guid>
      <dc:creator>thomas_skariah</dc:creator>
      <dc:date>2013-06-07T08:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: rolling seven days Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450081#M557982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vToday =Date(Today() -7,'&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;YYYY-MM-DD')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Then expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;=sum({&amp;lt;Leveransdatum={'$(vToday)'}&amp;gt;}[Levererat Antal])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;=sum({&amp;lt;Leveransdatum={"=$(vToday)"}&amp;gt;}[Levererat Antal])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;if still it is not working then post the sample application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Sushil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rolling-seven-days-Set-analysis/m-p/450081#M557982</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-06-07T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

