<?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 Set analysis to use only some weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168005#M887457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using the next expression to only show the last 5 weeks, when I select&amp;nbsp; a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=WeekStart(Max(Date)-28))&amp;lt;=$(=Max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I only need to see weeks that are in the same month that selected date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Date field its like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;16/05/2016&lt;/P&gt;&lt;P&gt;23/05/2016&lt;/P&gt;&lt;P&gt;30/05/2016&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>migueldelval</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set analysis to use only some weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168005#M887457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using the next expression to only show the last 5 weeks, when I select&amp;nbsp; a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=WeekStart(Max(Date)-28))&amp;lt;=$(=Max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I only need to see weeks that are in the same month that selected date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Date field its like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;16/05/2016&lt;/P&gt;&lt;P&gt;23/05/2016&lt;/P&gt;&lt;P&gt;30/05/2016&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168005#M887457</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to use only some weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168006#M887459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=WeekStart(&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(Max(Date))))&amp;lt;=$(=Date(Max(Date)))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168006#M887459</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-09-08T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to use only some weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168007#M887462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be 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;&lt;STRONG&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=&lt;SPAN style="color: #ff0000;"&gt;Date(&lt;/SPAN&gt;WeekStart(Max(Date)-28)&lt;SPAN style="color: #ff0000;"&gt;, 'DD/MM/YYYY')&lt;/SPAN&gt;)&amp;lt;=$(=&lt;SPAN style="color: #ff0000;"&gt;Date(&lt;/SPAN&gt;Max(Date)&lt;SPAN style="color: #ff0000;"&gt;, 'DD/MM/YYYY')&lt;/SPAN&gt;)"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168007#M887462</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-08T12:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to use only some weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168008#M887464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt;&lt;/STRONG&gt; and &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finnaly the correct answer was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Datefield={"&amp;gt;=$(=MonthStart(Weekstart(datefield)))&amp;lt;=$(=Max(Datefield))"}&amp;gt;}[Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this expressión my chart only show weeks that are in month selected in date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order words, if I select Datefield = 30/05/2016. My chart show only 5 weeks; and all of this weeks, Monday it´s in May.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Little bit strange but correct to my requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-use-only-some-weeks/m-p/1168008#M887464</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-09-08T13:23:40Z</dc:date>
    </item>
  </channel>
</rss>

