<?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: Set Analysis to have rolling week range with source date format YYYYMMDD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890870#M531321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, found a small error: Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({1&amp;lt;Final.DateRequest = {"&amp;gt;= $(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Date(WeekStart(Today(), -1), 'YYYYMMDD')) &amp;lt; $(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Date(WeekEnd(Today(), -1), 'YYYYMMDD'))"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if the above doesn't work then try this and see what happens:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({1&amp;lt;Final.DateRequest = {"$('&amp;gt;=' &amp;amp; Date(WeekStart(Today(), -1), 'YYYYMMDD') &amp;amp; '&amp;lt;' &amp;amp; Date(WeekEnd(Today(), -1), 'YYYYMMDD'))"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 15:51:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-01T15:51:27Z</dc:date>
    <item>
      <title>Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890867#M531318</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;I am trying to design a chart which shows order performance over the last rolling week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My date Field&amp;nbsp; (Final.DateRequest) is in the format YYYYMMDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functions which I am trying to use to have the rolling weeks are&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14331712902268600 jive_text_macro" jivemacro_uid="_14331712902268600" modifiedtitle="true"&gt;
&lt;P&gt;date&amp;nbsp;&amp;nbsp; ( WeekStart(&amp;nbsp; today(),-1) , 'YYYYMMDD' )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14331713287075209 jive_text_macro" jivemacro_uid="_14331713287075209" modifiedtitle="true"&gt;
&lt;P&gt;date&amp;nbsp;&amp;nbsp; ( WeekEnd(&amp;nbsp; today(),-1) , 'YYYYMMDD' )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and (as expected) they yield the correct results, when used separately and not in a Set Analysis context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to put all together in a Set Analysis statement, it all goes wrong.&lt;/P&gt;&lt;P&gt;I cannot already have a (more simple to my eyes) selection of orders for a specific date, let alone a range.&lt;/P&gt;&lt;P&gt;So a statement like this yield 0 (I have tried all different flavours I could think of, with/without $, "", '' , with/without = etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14331716427732033 jive_text_macro" jivemacro_uid="_14331716427732033" modifiedtitle="true"&gt;
&lt;P&gt;count( {1&amp;lt; Final.DateRequest = { "=$(&amp;nbsp;&amp;nbsp; =num(date&amp;nbsp;&amp;nbsp; ( WeekStart(&amp;nbsp; today(),-1) , 'YYYYMMDD' )&amp;nbsp;&amp;nbsp; )&amp;nbsp; )&amp;nbsp; "} &amp;gt;}&amp;nbsp; OrderLine# )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the &lt;SPAN style="text-decoration: underline;"&gt;final result&lt;/SPAN&gt; should consider all the Final.DateRequest which are greater/equal than&amp;nbsp; date ( WeekStart(&amp;nbsp; today(),-1) , 'YYYYMMDD' ) and smaller than&amp;nbsp; date ( WeekEnd(&amp;nbsp; today(),-1) , 'YYYYMMDD' ). Even more difficult than the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go back to basic, and use for example this statement, data is shown correctly (as expected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1433171074848928 jive_text_macro" jivemacro_uid="_1433171074848928" modifiedtitle="true"&gt;
&lt;P&gt;count( {1 &amp;lt;&amp;nbsp; Final.DateRequest=&amp;nbsp; {&amp;nbsp; 20150420} &amp;gt;}&amp;nbsp; OrderLine# )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please be so kind to tell me where and what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890867#M531318</guid>
      <dc:creator />
      <dc:date>2015-06-01T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890868#M531319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you are using Num() when you are formatting your expression within curly brackets as Date(..., 'YYYYMMDD'). You are in fact deviating away from your date format and changing it into number which won't match. Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({1&amp;lt;Final.DateRequest = {"&amp;gt;= $(Date(WeekStart(Today(), -1), 'YYYYMMDD')) &amp;lt; $(Date(WeekEnd(Today(), -1), 'YYYYMMDD'))"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might have missed a parenthesis here, but other than that, the above should work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890868#M531319</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-01T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890869#M531320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;You are quite right, but I am sure that one mentioned by you is one of the solutions I tried.&lt;/P&gt;&lt;P&gt;I landed in try to use "num" because I was frustrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution still does not work.&lt;/P&gt;&lt;P&gt;It yields 0 (not - ) so I assume the expression is rightly written, simply the expression is not yielding any outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what upsets me&lt;/P&gt;&lt;P&gt;If I input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14331736089571254" jivemacro_uid="_14331736089571254" modifiedtitle="true"&gt;&lt;OL class="dp-sql" start="1"&gt;
&lt;LI&gt;&lt;SPAN class="func"&gt;count( {1 &amp;lt;&amp;nbsp; Final.DateRequest=&amp;nbsp; {&amp;nbsp; 20150525} &amp;gt;}&amp;nbsp; OrderLine# )&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it yields a result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14331737091151646 jive_text_macro" jivemacro_uid="_14331737091151646"&gt;
&lt;P&gt;date(WeekStart(today()),'YYYYMMDD')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get 20150525&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Combining the two, yields nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890869#M531320</guid>
      <dc:creator />
      <dc:date>2015-06-01T15:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890870#M531321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, found a small error: Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({1&amp;lt;Final.DateRequest = {"&amp;gt;= $(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Date(WeekStart(Today(), -1), 'YYYYMMDD')) &amp;lt; $(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;Date(WeekEnd(Today(), -1), 'YYYYMMDD'))"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if the above doesn't work then try this and see what happens:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({1&amp;lt;Final.DateRequest = {"$('&amp;gt;=' &amp;amp; Date(WeekStart(Today(), -1), 'YYYYMMDD') &amp;amp; '&amp;lt;' &amp;amp; Date(WeekEnd(Today(), -1), 'YYYYMMDD'))"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890870#M531321</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-01T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890871#M531322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I unfortunately have to say that still is not working.&lt;/P&gt;&lt;P&gt;And I really cannot understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some other check I can do, besides the already mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14332392512666763 jive_text_macro" jivemacro_uid="_14332392512666763"&gt;&lt;SPAN class="func"&gt;count( {1 &amp;lt;&amp;nbsp; Final.DateRequest=&amp;nbsp; {&amp;nbsp; 20150525} &amp;gt;}&amp;nbsp; OrderLine# )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14332392554064308 jive_text_macro" jivemacro_uid="_14332392554064308"&gt;&lt;SPAN class="keyword"&gt;date(WeekStart(today()),&lt;SPAN class="string"&gt;'YYYYMMDD'&lt;/SPAN&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to understand why this Set Analysis is not working as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results is always 0 with all three proposed methods, rather than "-"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 10:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890871#M531322</guid>
      <dc:creator />
      <dc:date>2015-06-02T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890872#M531323</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;Could you able to provide a sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 10:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890872#M531323</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-06-02T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890873#M531324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya I think, it would be much easier to troubleshoot if you can share a sample, would it be possible to share one sample? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 10:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890873#M531324</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-02T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890874#M531325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ll try to reduce file size with Reduce Data function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime I am making an interesting discovery, as already following statement does not yield any result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14332402749106986 jive_text_macro" jivemacro_uid="_14332402749106986" modifiedtitle="true"&gt;
&lt;P&gt;count( {1&amp;lt;Final.DataRequest = { "&amp;gt;= 20150406 " } &amp;gt; } OrderLine# )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meanwhile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14332405756565043" jivemacro_uid="_14332405756565043"&gt;
&lt;P&gt;count( {1&amp;lt;Final.DataRequest = { 20150406 } &amp;gt; } OrderLine# )&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 10:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890874#M531325</guid>
      <dc:creator />
      <dc:date>2015-06-02T10:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890875#M531326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one seems to be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;Count({1&amp;lt;Final.DateRequest = {"=Final.DateRequest &amp;gt;= Date(WeekStart(Today(), -1), 'YYYYMMDD')"}*{"=Final.DateRequest &amp;lt; Date(WeekEnd(Today(), -1), 'YYYYMMDD')"}&amp;gt;}OrderLine#)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Tested it on a sample application I created with the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD OrderLine#,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date#(Final.DateRequest, 'YYYYMMDD') as Final.DateRequest;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OrderLine#, Final.DateRequest&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12, 20150521&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;25, 20150525&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;32, 20150527&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;43, 20150601&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;48, 20150604&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;54, 20150609&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the sample application for review.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 10:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890875#M531326</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-02T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890876#M531327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to reduce the QV file size, but didn't succeed in going under the 150 MB..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT. It is not needed anymore, your expression works like a charm!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you SO MUCH Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890876#M531327</guid>
      <dc:creator />
      <dc:date>2015-06-02T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to have rolling week range with source date format YYYYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890877#M531328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, although I still don't understand why the first two expressions don't seem to work. I hope expertscan share some information when they come across this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-have-rolling-week-range-with-source-date-format/m-p/890877#M531328</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-02T11:06:45Z</dc:date>
    </item>
  </channel>
</rss>

