<?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: Split weeks into two datasets if month changes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690441#M540596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that, I have split the data out by month in the table as well as week to show the totals as in the spreadsheet picture. I still need to display the week name as two different things though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 08:34:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-04T08:34:07Z</dc:date>
    <item>
      <title>Split weeks into two datasets if month changes</title>
      <link>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690439#M540594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset over 6 months which I need to split out into a weekly view. However, when the month changes during the week, I need to be able to show the data up to the end of the month and then for the remainder of the week, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;20-Jul-14 = 642&lt;/P&gt;&lt;P&gt;27-Jul-14 = 498&lt;/P&gt;&lt;P&gt;03-Aug-14 = 572&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO&lt;/P&gt;&lt;P&gt;20-Jul-14 = 642&lt;/P&gt;&lt;P&gt;27-Jul-14 = 498&lt;/P&gt;&lt;P&gt;30-Jul-14 = 403&lt;/P&gt;&lt;P&gt;01 to 03-Aug-14 = 169&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do this in a straight table or pivot table. It must be some combination of the WeekEnd and MonthEnd functions, but I just can't seem to replicate what I need. I have attached an image from the spreadsheet I am trying to replicate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WeekMonth.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/63466_WeekMonth.bmp" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690439#M540594</guid>
      <dc:creator />
      <dc:date>2014-07-31T11:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split weeks into two datasets if month changes</title>
      <link>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690440#M540595</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;In the attaced file you have an example with Month and Week as you need&lt;/P&gt;&lt;P&gt;Is in Spanish&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Week = Semana&lt;/LI&gt;&lt;LI&gt;Month = Mes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos y suerte&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 15:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690440#M540595</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-02T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Split weeks into two datasets if month changes</title>
      <link>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690441#M540596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that, I have split the data out by month in the table as well as week to show the totals as in the spreadsheet picture. I still need to display the week name as two different things though&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 08:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690441#M540596</guid>
      <dc:creator />
      <dc:date>2014-08-04T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Split weeks into two datasets if month changes</title>
      <link>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690442#M540597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to solve the issue here, and it turned out to be pretty straightforward. For the Dimension you use the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Month(Report_Date)&amp;lt;&amp;gt;Month(WeekEnd(Report_Date)),MonthEnd(Report_Date),WeekEnd(Report_Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In summary; if the month of the date is not the same as the month of the last day of the week, then bring back the end of the month otherwise bring back the end of the week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really sure why the month part did not occur to me beforehand, but there you go!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-weeks-into-two-datasets-if-month-changes/m-p/690442#M540597</guid>
      <dc:creator />
      <dc:date>2014-08-12T13:01:10Z</dc:date>
    </item>
  </channel>
</rss>

