<?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 Define Specific Time periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275719#M861350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new QlikView user and this is my first Qlik project ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set that contains &lt;STRONG&gt;monthly&lt;/STRONG&gt; values for certain measures (costs, hit-rates, miles driven,...). &lt;/P&gt;&lt;P&gt;I am trying to calculate KPIs at the end of fiscal quarters. The KPIs are calculated using simple calculation on the measures (mostly averaging).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the KPIs are 12-months averages. So, for example, the value for KPI "x" in Q1-2016:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;&lt;EM&gt;Average(x) = From Jun-16 to Jul-15 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have found good answers about how to create a master calendar and fiscal quarters, &lt;STRONG&gt;but I need to create "alternate quarters" that contain the last 12 months leading to the final month of the quarter. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Kind regards&lt;/P&gt;&lt;P style="text-align: left;"&gt;Alif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Define Specific Time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275719#M861350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new QlikView user and this is my first Qlik project ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set that contains &lt;STRONG&gt;monthly&lt;/STRONG&gt; values for certain measures (costs, hit-rates, miles driven,...). &lt;/P&gt;&lt;P&gt;I am trying to calculate KPIs at the end of fiscal quarters. The KPIs are calculated using simple calculation on the measures (mostly averaging).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the KPIs are 12-months averages. So, for example, the value for KPI "x" in Q1-2016:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;&lt;EM&gt;Average(x) = From Jun-16 to Jul-15 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have found good answers about how to create a master calendar and fiscal quarters, &lt;STRONG&gt;but I need to create "alternate quarters" that contain the last 12 months leading to the final month of the quarter. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Kind regards&lt;/P&gt;&lt;P style="text-align: left;"&gt;Alif&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/Define-Specific-Time-periods/m-p/1275719#M861350</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define Specific Time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275720#M861351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;but I need to create "alternate quarters" that contain the last 12 months leading to the final month of the quarter.&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not sure I understand what you mean here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275720#M861351</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-05T13:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Define Specific Time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275721#M861352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean is that right now the quarters i have defined (using a master calendar) are normal quarters that have only three months.&lt;/P&gt;&lt;P&gt;However, the sector I work in is very seasonal. So I need to include the last 12 months' data when calculating a quarterly KPI to get rid of seasonality.&lt;/P&gt;&lt;P&gt;So what I need, is defined periods of time that have the data for the 12 months leading to the end of each quarter. So my time periods would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Period 1: Jul-15 to Jun-16 and I want to call it Q1-2017&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Period 2: Oct-15 to Sep-16 and I want to call it Q2-2017&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Period 3: Jan-16 to Dec-16 and I want to call it Q3-2017&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Period 4: Apr-16 to Mar-17 and I want to call it Q4-2017&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called them "alternate quarters" because they are defined by the last month of every fiscal quarter. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275721#M861352</guid>
      <dc:creator />
      <dc:date>2017-01-05T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Define Specific Time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275722#M861353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since these quarters are overlapping, it would be best if you use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275722#M861353</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-05T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Define Specific Time periods</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275723#M861354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample script to show how this can work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(Date) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(If(Month(Date) &amp;gt; 4, (Month(Date)-3)/3, (Month(Date)+9)/3)) &amp;amp; '-' &amp;amp; If(Month(Date) &amp;gt; 4, Year(Date)+1, Year(Date)) as Quarter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MakeDate(2014, 12, 31) + IterNo()) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Ceil(Rand() * 100) * 100 as Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While MakeDate(2014, 12, 31) + IterNo() &amp;lt; MakeDate(2017, 4, 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AsOfTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Keep (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT MonthYear as AsOfMonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(If(Month(Date) &amp;gt; 4, (Month(Date)-3)/3, (Month(Date)+9)/3)) &amp;amp; '-' &amp;amp; If(Month(Date) &amp;gt; 4, Year(Date)+1, Year(Date)) as AlternateQuarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(AddMonths(MonthYear, -IterNo() + 1)) as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While IterNo() &amp;lt; 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 04:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Specific-Time-periods/m-p/1275723#M861354</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-07T04:39:34Z</dc:date>
    </item>
  </channel>
</rss>

