<?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: Calculating Month Index in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246360#M852510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share sample data what is the input and what is expected output.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Maybe you have to consider Mapping &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 20:44:32 GMT</pubDate>
    <dc:creator>ziadm</dc:creator>
    <dc:date>2017-03-07T20:44:32Z</dc:date>
    <item>
      <title>Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246357#M852506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to calculate a month index (index transactions to time zero) based on a few fields in my data load script.&amp;nbsp; I have a billing_date field and a min_service_activation date field.&amp;nbsp; I'm just trying to calculate a month index between the billing date and the service activation date.&amp;nbsp; I've tried a bunch of variants of calculating the different, but nothing has worked.&amp;nbsp; &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/Calculating-Month-Index/m-p/1246357#M852506</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246358#M852508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your question you can use the following expression:&lt;/P&gt;&lt;P&gt;(year(billing_date)*12+month(billing_date)) - (year(min_service_activation_date)*12+month(&lt;SPAN style="font-size: 13.3333px;"&gt;min_service_activation_date&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246358#M852508</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2017-03-07T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246359#M852509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't work.&amp;nbsp; For example, a billing_date of 2017-11-01 and a min_s_act_date if 2017-7-22 gives a number of 661393 when it should be 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246359#M852509</guid>
      <dc:creator />
      <dc:date>2017-03-07T20:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246360#M852510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share sample data what is the input and what is expected output.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Maybe you have to consider Mapping &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246360#M852510</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2017-03-07T20:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246361#M852511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017*12 = 24204 &lt;/P&gt;&lt;P&gt;24204 + 11 = 24215&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017*12 = 24204&lt;/P&gt;&lt;P&gt;24204+7 = 24211&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;24215 - 24211 = 4 (which is the month index)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100 is the number of days between the dates, which can be obtained by a simple subtraction of the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246361#M852511</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2017-03-07T21:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Month Index</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246362#M852512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Below?&lt;/P&gt;&lt;P&gt;let maxdate=Num(MakeDate(2017,1,1));&lt;/P&gt;&lt;P&gt;let mindate=Num(MakeDate(2007,1,1));&lt;/P&gt;&lt;P&gt;QuartersMap:&lt;/P&gt;&lt;P&gt;MAPPING REPLACE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowno() as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil (rowno()/3) as Quarter&lt;/P&gt;&lt;P&gt;AUTOGENERATE (12);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Cal]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempDate as _KeyScoringDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(TempDate,'YYYY-MM-DD') as [Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week(TempDate) As [Week],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TempDate) As [Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate) As [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(TempDate) As [Day], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(TempDate)*-1 as [CurYTDFlag],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(TempDate,-1)*-1 as [LastYTDFlag],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inyear(TempDate, Monthstart(Today()),-1) as [RC12],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(monthstart(TempDate), 'MMM-YYYY') as [MonthYear],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(monthstart(TempDate), 'YYYYMM') as [Period],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('QuartersMap', month(TempDate), Null()) as [Quarter],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as [WeekYear],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekStart(TempDate) &amp;amp; ' to ' &amp;amp; WeekEnd(TempDate) as [Week Range],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekEnd(TempDate) as [WeekEnding],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekStart(TempDate) as [WeekStarting],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(TempDate) as [Week Day];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(mindate) + IterNo()) as TempDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate(1)&lt;/P&gt;&lt;P&gt;WHILE ($(mindate) + IterNo())-1 &amp;lt;= $(maxdate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;load Distinct [Period],&lt;/P&gt;&lt;P&gt;autonumber([Period]) as MonthIndex&lt;/P&gt;&lt;P&gt;resident Cal;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 07:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Month-Index/m-p/1246362#M852512</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-08T07:21:58Z</dc:date>
    </item>
  </channel>
</rss>

