<?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 Multiple Specific Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095823#M465728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand what you are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you elaborate on this?&lt;/P&gt;&lt;P&gt;And maybe post a small sample QVW or the expressions you are using with some sample input records and your excel calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If you want to exclude current date:&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;=Sum(&lt;/SPAN&gt;{&amp;lt;WeekDay = {'Fri'}, Date = {"&amp;gt;$(=Date(Today()-42))&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;$(=Today())&lt;/STRONG&gt;"} &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you need to adjust the lower limit to &amp;gt;= then, to get 6 dates in total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 15:10:18 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-07T15:10:18Z</dc:date>
    <item>
      <title>Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095814#M465719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could someone provide me with the correct syntax for set analysis to only look at the 6 previous Fridays?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can do Date(Floor(ReloadTime()-7)), -14, -21, -28, -35, -42 but how do I combine all of those into one set analysis filter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 19:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095814#M465719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T19:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095815#M465720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;sum ({$ &amp;lt;date={'$(=Date(Today()-7))','$(=Date(Today()-14))','$(=Date(Today()-21))'}&amp;gt;} Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;relace today() with floor(reloadtime())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 19:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095815#M465720</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-04T19:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095816#M465721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date = {'$(=WeekStart(Today(), 0, 4))', '$(=WeekStart(Today(), -1, 4))', '$(=WeekStart(Today(), -2, 4))', &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;'$(=WeekStart(Today(), -3, 4))', '$(=WeekStart(Today(), -4, 4))', '$(=WeekStart(Today(), -5, 4))'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="117040" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117040_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: You might have to play around with the third argument of the WeekStart function as in my script I have this variable &lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;SET FirstWeekDay=6;&lt;/STRONG&gt; which might be different for you and you will need to adjust the &lt;STRONG style="font-size: 13.3333px;"&gt;$(=WeekStart(Today(), 0, &lt;SPAN style="color: #ff0000;"&gt;4&lt;/SPAN&gt;) &lt;/STRONG&gt;to make sure you get the Fridays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 23:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095816#M465721</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T23:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095817#M465722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your example to figure out a shorter expression using a loop. (Edit: changed to today(0). Today() is the date the document was opened, not that it was reloaded.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;={&lt;STRONG style=": ; color: #808080;"&gt;&lt;EM&gt;$(=concat(chr(39) &amp;amp; date(weekstart(today(0),0,4)+valueloop(0,-35,-7)) &amp;amp; chr(39),','))&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 00:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095817#M465722</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-03-05T00:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095818#M465723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super &lt;A _jive_internal="true" href="https://community.qlik.com/people/JohnW"&gt;John&lt;/A&gt;‌ &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 00:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095818#M465723</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-05T00:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095819#M465724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a master calendar:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2802"&gt;The Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/" title="http://qlikviewcookbook.com/2015/05/better-calendar-scripts/"&gt;Better Calendar Scripts | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it should boil down to something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{&amp;lt;WeekDay = {'Fri'}, Date = {"&amp;gt;$(=Date(Today()-42))"} &amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Instead of Date field, you could also select in a sequential week number field]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that date format of Date field matches the set modifier date format and you may need to clear user selections in calendar fields that may interfere with the defined set. e.g. user selections in Week field (but also any other calendar field that may interfere):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;WeekDay = {'Fri'}, Date = {"&amp;gt;$(=Date(Today()-42))"}, Week= &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 20:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095819#M465724</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-05T20:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095820#M465725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a master calendar and this seems like the best approach but how do I make 'Fri' current weekday?&amp;nbsp; WeekDay = {'=WeekDay(ReloadTime())'} ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095820#M465725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095821#M465726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekDay = {'$(=WeekDay(ReloadTime()))'} ?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095821#M465726</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-07T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095822#M465727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying this now but the average calculation is different than what I calculated in Excel.&amp;nbsp; Off my 1's and 2's on every hour.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I exclude current date in this formula?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095822#M465727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T15:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095823#M465728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand what you are saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you elaborate on this?&lt;/P&gt;&lt;P&gt;And maybe post a small sample QVW or the expressions you are using with some sample input records and your excel calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If you want to exclude current date:&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;=Sum(&lt;/SPAN&gt;{&amp;lt;WeekDay = {'Fri'}, Date = {"&amp;gt;$(=Date(Today()-42))&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;$(=Today())&lt;/STRONG&gt;"} &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you need to adjust the lower limit to &amp;gt;= then, to get 6 dates in total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095823#M465728</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-07T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Multiple Specific Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095824#M465729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The updated set analysis to exclude today fixed my average differences.&amp;nbsp; Thanks everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 15:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Specific-Dates/m-p/1095824#M465729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T15:32:35Z</dc:date>
    </item>
  </channel>
</rss>

