<?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: Week aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324719#M119619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can we do some this like, if the weekend of you transaction date is not equal to the current month then you could use month end function to calculate the date. Have a look at the below expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=IF(MONTH(WEEKEND(TODAY())) = MONTH(TODAY()),WEEKEND(TODAY()),MONTHEND(TODAY()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In place of 'Today()', replace you transaction date.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2011 06:15:56 GMT</pubDate>
    <dc:creator>sridhar240784</dc:creator>
    <dc:date>2011-12-27T06:15:56Z</dc:date>
    <item>
      <title>Week aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324718#M119618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to aggregate data by week and I see problem doing this. I could use function endweek(date) and solve the problem but when I do this I get problem with the month analysis, becuse the end week could be on different month. One example is 201006 where we have week 26 and 27. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to use the ordinary weeks and set the end weeks for every new month ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exampel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20100628 - end week 20100630 instead of 20100704&lt;/P&gt;&lt;P&gt;20100629 - end week 20100630 instead of 20100704&lt;/P&gt;&lt;P&gt;20100630 - end week 20100630 instead of 20100704&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 05:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324718#M119618</guid>
      <dc:creator />
      <dc:date>2011-12-27T05:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Week aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324719#M119619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can we do some this like, if the weekend of you transaction date is not equal to the current month then you could use month end function to calculate the date. Have a look at the below expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=IF(MONTH(WEEKEND(TODAY())) = MONTH(TODAY()),WEEKEND(TODAY()),MONTHEND(TODAY()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In place of 'Today()', replace you transaction date.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 06:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324719#M119619</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2011-12-27T06:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Week aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324720#M119620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 07:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-aggregation/m-p/324720#M119620</guid>
      <dc:creator />
      <dc:date>2011-12-27T07:39:09Z</dc:date>
    </item>
  </channel>
</rss>

