<?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: Creating 3 month groups from previous month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2108048#M90490</link>
    <description>&lt;P&gt;I would rather create quarter field from your date field in the script in your calendar script table, something like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dual('Q' &amp;amp; ceil(month([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;]) / 3) &amp;amp; '-' &amp;amp; Year([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;]),QuarterStart([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;])) AS [Quarter Year]&lt;/P&gt;
&lt;P&gt;Indirectly it is grouping your dates in 3 months group and at the same time keeps it format as date and text both.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 03:10:32 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2023-08-22T03:10:32Z</dc:date>
    <item>
      <title>Creating 3 month groups from previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2106242#M90321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm looking for a way that I can group data via a date field into 3 month periods in the past starting from the month before the current one.&lt;BR /&gt;&lt;BR /&gt;i.e. if we're in August 2023 then group data as follows...&lt;/P&gt;
&lt;P&gt;Group 1 - May 2023, Jun 2023, Jul 2023&lt;BR /&gt;Group 2 - Feb 2023, Mar 2023, Apr 2023&lt;BR /&gt;Group 3 - Nov 2022, Dec 2022, Jan 2023&lt;BR /&gt;Group 4 - etc&lt;/P&gt;
&lt;P&gt;and if we're in Dec 2023 then group data as follows...&lt;/P&gt;
&lt;P&gt;Group 1 - Sep 2023,&amp;nbsp;Oct 2023,&amp;nbsp;Nov 2023&amp;nbsp;&lt;BR /&gt;Group 2 - Jun 2023, Jul 2023,&amp;nbsp;&amp;nbsp;Aug 2023&lt;BR /&gt;Group 3 - Mar 2023, Apr 2023,&amp;nbsp;May 2023&lt;BR /&gt;Group 4 - etc&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 10:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2106242#M90321</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2023-08-16T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 3 month groups from previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2106535#M90353</link>
      <description>&lt;P&gt;Its possible using MonthStart, Monthend functions, something like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(DateField &amp;gt;= MonthStart(Today(),-3) and DateField &amp;lt;= Monthend(Today(),-1), 'Group 1',&lt;/P&gt;
&lt;P&gt;If(DateField &amp;gt;= MonthStart(Today(),-6) and DateField &amp;lt;= Monthend(Today(),-4), 'Group 2',&lt;/P&gt;
&lt;P&gt;If(DateField &amp;gt;= MonthStart(Today(),-9) and DateField &amp;lt;= Monthend(Today(),-7), 'Group 3',&lt;/P&gt;
&lt;P&gt;If(DateField &amp;gt;= MonthStart(Today(),-12) and DateField &amp;lt;= Monthend(Today(),-8), 'Group 4'))))&lt;/P&gt;
&lt;P&gt;I just gave you idea, you may need to correct exact value for 2nd parameter of monthend/monthstart function and in case I missed any parenthesis.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 22:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2106535#M90353</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2023-08-16T22:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 3 month groups from previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2107717#M90463</link>
      <description>&lt;P&gt;Thanks so much for your reply&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48860"&gt;@Digvijay_Singh&lt;/a&gt;&amp;nbsp;much appreciated - Would it be possible to do this without having to nest if statements at all? The only reason I'm asking is we may have 3+ years worth of data and I don't want to have to write 12 nested if clauses to set the groups, I was wondering if it's possible for Qlik to count back/assign the data automatically in 3 month groups from the month before today's month? Kind of like using normal quarters but they'd be offset from the current month.&lt;BR /&gt;&lt;BR /&gt;If it needs to be done via nested if statements then I'll have to do that.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2107717#M90463</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2023-08-21T10:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 3 month groups from previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2108048#M90490</link>
      <description>&lt;P&gt;I would rather create quarter field from your date field in the script in your calendar script table, something like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dual('Q' &amp;amp; ceil(month([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;]) / 3) &amp;amp; '-' &amp;amp; Year([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;]),QuarterStart([&lt;SPAN&gt;DateField&amp;nbsp;&lt;/SPAN&gt;])) AS [Quarter Year]&lt;/P&gt;
&lt;P&gt;Indirectly it is grouping your dates in 3 months group and at the same time keeps it format as date and text both.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 03:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2108048#M90490</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2023-08-22T03:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 3 month groups from previous month</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2111478#M90792</link>
      <description>&lt;P&gt;Thanks a lot for your help&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48860"&gt;@Digvijay_Singh&lt;/a&gt;&amp;nbsp; much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 15:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-3-month-groups-from-previous-month/m-p/2111478#M90792</guid>
      <dc:creator>jay_pee</dc:creator>
      <dc:date>2023-08-30T15:03:20Z</dc:date>
    </item>
  </channel>
</rss>

