<?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 How best to decrement for rolling month? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427162#M429712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been tasked with displaying data based on a loose, rolling "quarter", not a traditional calendar quarter unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example below.&amp;nbsp; Every month, one month will roll from one group to another.&amp;nbsp; Trying to figure out the most efficient way to tag each month with its' respective "quarter", in the MasterCalendar load script, to be leveraged in the UI.&amp;nbsp; I thought about using &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),-0)) &lt;/SPAN&gt; and then incrementing accordingly. Am not sure if RowNo, RecNo, or another function would be more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any and all constructive feedback.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CalendarGrouping.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175422_CalendarGrouping.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 19:08:24 GMT</pubDate>
    <dc:creator>Tanalex</dc:creator>
    <dc:date>2017-09-01T19:08:24Z</dc:date>
    <item>
      <title>How best to decrement for rolling month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427162#M429712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been tasked with displaying data based on a loose, rolling "quarter", not a traditional calendar quarter unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example below.&amp;nbsp; Every month, one month will roll from one group to another.&amp;nbsp; Trying to figure out the most efficient way to tag each month with its' respective "quarter", in the MasterCalendar load script, to be leveraged in the UI.&amp;nbsp; I thought about using &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;addmonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),-0)) &lt;/SPAN&gt; and then incrementing accordingly. Am not sure if RowNo, RecNo, or another function would be more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any and all constructive feedback.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CalendarGrouping.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175422_CalendarGrouping.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427162#M429712</guid>
      <dc:creator>Tanalex</dc:creator>
      <dc:date>2017-09-01T19:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How best to decrement for rolling month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427163#M429713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not too sure what you are trying to do, but from what I can gather, I quite often use the "autonumber()" function and double barrel (duplicate) fields for calendar groupings. I then reference the autonumber field in set analysis, as it is easier to use than a string field. Obviously, the calendar table build in the script must be in chronological order. In order for the set analysis expression to work, based on user selection on the related "text" field, the set analysis expression must have "[field user for selection]=".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the attached app to see if this makes sense. Click around on the month selection box to see if this is the kind of "rolling quarters" you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheenu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 20:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427163#M429713</guid>
      <dc:creator>cheenu_janakira</dc:creator>
      <dc:date>2017-09-01T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How best to decrement for rolling month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427164#M429714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Use this expression in your master calendar script to assign the quarter number you need to each date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Div(3+Mod(Month(Date)-Month(Today())+12,12),3)as Qtr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 21:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427164#M429714</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-01T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How best to decrement for rolling month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427165#M429715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for that.&amp;nbsp; It took a bit, as I have not used those functions, to wrap my head around it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 17:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427165#M429715</guid>
      <dc:creator>Tanalex</dc:creator>
      <dc:date>2017-10-19T17:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How best to decrement for rolling month?</title>
      <link>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427166#M429716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone who is curious, I ended up solving my original dilemma through nested-ifs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( Date(Floor(tmpDate)) &amp;lt;= MonthsEnd(1,Today(),-1) AND Date(Floor(tmpDate)) &amp;gt;= MonthsStart(1,Today(),-3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Date(MonthsEnd(1,Today(),-1),'MMMYYYY-') &amp;amp; Date(MonthsStart(1,Today(),-3),'MMMYYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( Date(Floor(tmpDate)) &amp;lt;= MonthsEnd(1,Today(),-4) AND Date(Floor(tmpDate)) &amp;gt;= MonthsStart(1,Today(),-6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Date(MonthsEnd(1,Today(),-4),'MMMYYYY-') &amp;amp; Date(MonthsStart(1,Today(),-6),'MMMYYYY')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( Date(Floor(tmpDate)) &amp;lt;= MonthsEnd(1,Today(),-7) AND Date(Floor(tmpDate)) &amp;gt;= MonthsStart(1,Today(),-9)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Date(MonthsEnd(1,Today(),-7),'MMMYYYY-') &amp;amp; Date(MonthsStart(1,Today(),-9),'MMMYYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF( Date(Floor(tmpDate)) &amp;lt;= MonthsEnd(1,Today(),-10) AND Date(Floor(tmpDate)) &amp;gt;= MonthsStart(1,Today(),-12)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Date(MonthsEnd(1,Today(),-10),'MMMYYYY-') &amp;amp; Date(MonthsStart(1,Today(),-12),'MMMYYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,'')))) AS&amp;nbsp; [Month3Roll3]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 21:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-best-to-decrement-for-rolling-month/m-p/1427166#M429716</guid>
      <dc:creator>Tanalex</dc:creator>
      <dc:date>2018-03-09T21:35:49Z</dc:date>
    </item>
  </channel>
</rss>

