<?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: Dynamic Date in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153222#M376627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have temporarily used if statement in my expression instead of set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Distinct&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;[Order Status]&lt;/SPAN&gt; = 'Complete' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;[Product Category]&lt;/SPAN&gt; = 'Shoes' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;[Completion Date]&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()-28), &lt;SPAN style="color: #0000ff;"&gt;OrderId&lt;/SPAN&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try one of your Set Analysis Expression and mark the correct answer tomorrow &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 08:08:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-09T08:08:33Z</dc:date>
    <item>
      <title>Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153213#M376618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I trying to get total number of orders completed in last 4 weeks... I am using following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;[Order Status]&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;={'Complete'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;[Product Category]&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;={'Shoes'},&lt;SPAN style="color: #993300;"&gt;[Completion Date]&lt;/SPAN&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; color: #993300;"&gt;OrderId&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where can I add that last 4 weeks clause in the above set analysis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Completion Date field name is [Completion Date]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 01:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153213#M376618</guid>
      <dc:creator />
      <dc:date>2016-08-09T01:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153214#M376619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;[Order Status] = {'Complete'}, [Product Category] = {'Shoes'}, &lt;SPAN style="color: #ff0000;"&gt;[Completion Date] = {"$(='&amp;gt;=' &amp;amp; Date(Max([Completion Date]) - 28, 'DateFieldFormatHere') &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(Max([Completion Date]), 'DateFieldFormatHere')&lt;/STRONG&gt;&lt;/SPAN&gt;)"}&lt;/SPAN&gt;&amp;gt;}OrderId)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 02:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153214#M376619</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T02:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153215#M376620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(Order Status='Complete' and Product Category='Shoes' and (Num(Week(date(now()))) - Num(Week(SubmitDocDate1))=4),OrderId))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 06:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153215#M376620</guid>
      <dc:creator>marjan_it</dc:creator>
      <dc:date>2016-08-09T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153216#M376621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count(if(Order Status='Complete' and Product Category='Shoes' and (Num(Week(date(now()))) - Num(Week(SubmitDocDate1))=4),OrderId))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Nandu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 06:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153216#M376621</guid>
      <dc:creator />
      <dc:date>2016-08-09T06:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153217#M376622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Hi Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Just a bit curious to know why are you using ' ' and &amp;amp; while using &amp;gt;= in set analysis ?is there any particular reason&amp;nbsp; you are using this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;{"$(=&lt;STRONG style="color: #339966;"&gt;'&amp;gt;=' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Date(Max([Completion Date]) - 28, 'DateFieldFormatHere') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks a lot in advance. I have learned a lot from your solutions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;KC&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 06:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153217#M376622</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-08-09T06:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153218#M376623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nanda, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Order Status] = {'Complete'}, [Product Category] = {'Shoes'}, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Completion Date] = {$(&amp;gt;=Date(MakeWeekDate(Year(WeekStart(Max([Completion Date])-28)), Week(WeekStart(Max([Completion Date])-28))),'DD/MM/YYYY'))}&amp;gt;}OrderId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will get first day of 4 weeks before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153218#M376623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-09T07:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153219#M376624</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;Things like this i would normally do in script as it helps with front end performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in you calendar add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Date&amp;gt;= Today()-28 and Date&amp;lt;=Today(),1,0) As RollingMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you set analysis would be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;[Order Status]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;={'Complete'}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;[Product Category]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;={'Shoes'},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;RollingMonth={1}&lt;/SPAN&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #993300;"&gt;OrderId&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153219#M376624</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-09T08:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153220#M376625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But mark, how would this be dynamic? Once set, flags will be fixed to 0 and 1 and won't change based on selections. Isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153220#M376625</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153221#M376626</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;I guess it depends how he means, I took it to mean the prior 28 days, so on a nightly reload this would always show the last 28 days. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he is wanting the 4 weeks prior to a selection then you're right, my approach is terrible. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153221#M376626</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-09T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153222#M376627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have temporarily used if statement in my expression instead of set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Distinct&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;[Order Status]&lt;/SPAN&gt; = 'Complete' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;[Product Category]&lt;/SPAN&gt; = 'Shoes' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;[Completion Date]&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()-28), &lt;SPAN style="color: #0000ff;"&gt;OrderId&lt;/SPAN&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try one of your Set Analysis Expression and mark the correct answer tomorrow &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 08:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153222#M376627</guid>
      <dc:creator />
      <dc:date>2016-08-09T08:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153223#M376628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothish -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A lot of the people don't use this syntax, but I like using this because it gives me the flexibility to check my inner portion of the set analysis here. Basically, if you pick this (the portion in red)&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;SPAN style="color: #3d3d3d; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;[Completion Date] = {"$&lt;SPAN style="color: #ff0000;"&gt;(='&amp;gt;=' &amp;amp; Date(Max([Completion Date]) - 28, 'DateFieldFormatHere') &amp;amp; '&amp;lt;=' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(Max([Completion Date]), 'DateFieldFormatHere')&lt;/STRONG&gt;&lt;/SPAN&gt;)"}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and paste it in a text box object, you will see the date range needed and in the format needed. If either of the two things don't match, you have to fix it and you can fix that in the text box object. Once fixed, copy the complete expression and paste it between the dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative to the above being used is this:&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;[Completion Date] = {"&lt;SPAN style="color: #ff0000;"&gt;&amp;gt;= $(=Date(Max([Completion Date]) - 28, 'DateFieldFormatHere'))&amp;lt;= $(=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(Max([Completion Date]), 'DateFieldFormatHere')&lt;/STRONG&gt;&lt;/SPAN&gt;)"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which works equally well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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, 09 Aug 2016 08:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153223#M376628</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T08:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153224#M376629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are right, from his response below (which used today), your script method seems to make sense &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, 09 Aug 2016 08:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153224#M376629</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T08:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153225#M376630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 06:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153225#M376630</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-08-11T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153226#M376631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Date-in-Set-Analysis/m-p/1153226#M376631</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-11T09:09:11Z</dc:date>
    </item>
  </channel>
</rss>

