<?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: Create Month Periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751318#M267897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, I will take a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 17:04:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-01T17:04:53Z</dc:date>
    <item>
      <title>Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751308#M267887</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;I need to create a chart which shows how many claims have been incurred within a Policy Month. i.e. Policy Inception Month = Policy Month 1 regardless of the actual month name. I am struggling to define this in my script. Ideally I also need to show the information by Policy Week and Policy Day too. Any ideas would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I have defined the following in my script, but this does help when setting the months up as a chart dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(PolicyInceptionDate) as PolicyMonth1,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate,1)) as PolicyMonth2,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 2)) as PolicyMonth3,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 3)) as PolicyMonth4,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 4)) as PolicyMonth5,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 5)) as PolicyMonth6,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 6)) as PolicyMonth7,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 7)) as PolicyMonth8,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 8)) as PolicyMonth9,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 9)) as PolicyMonth10,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 10)) as PolicyMonth11,&lt;/P&gt;&lt;P&gt;Month(Addmonths(PolicyInceptionDate, 11)) as PolicyMonth12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751308#M267887</guid>
      <dc:creator />
      <dc:date>2014-12-01T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751309#M267888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to connect your table to master calendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751309#M267888</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2014-12-01T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751310#M267889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Frank. My master calendar does not look at this month however and I am still unsure as to how I would code this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751310#M267889</guid>
      <dc:creator />
      <dc:date>2014-12-01T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751311#M267890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you provide a qvw for testing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751311#M267890</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2014-12-01T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751312#M267891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I guess that this is not as simple as it sounds. At least not for months. You are trying to calculate three numbers for each Claim: the PolicyMonthNumber, the PolicyWeekNumber and the PolicyDayNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For weeks and days, the expression is simple:&lt;/P&gt;&lt;P&gt;Days: ClaimDate - PolicyInceptionDate + 1&lt;/P&gt;&lt;P&gt;Weeks: (ClaimDate - PolicyInceptionDate)/7 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For months, there is this problem of varying month lengths... No clue yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 15:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751312#M267891</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-01T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751313#M267892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response. It's more the PolicyInceptionDate that I need to identify the dates for. So for example if a policy was incepted in March, I would like March to become equal to one, April to become 2, May as 3 etc and I would need this to be the case for each policy, regardless of when it starts. So that in a chart, I could have the numbers 1 to 12 along the x-axis as Policy Month and then the expression would look at which month of the policy the claim occurred to see whether on average the claims frequency is higher at a certain point of a policy year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 16:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751313#M267892</guid>
      <dc:creator />
      <dc:date>2014-12-01T16:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751314#M267893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Months:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 + (Month(ClaimDate) + Year(ClaimDate))*12) - (Month(PolicyInceptionDate) + Year(PolicyInceptionDate)*12) +&lt;/P&gt;&lt;P&gt;IF ((Month(ClaimDate) + Year(ClaimDate))*12) - (Month(PolicyInceptionDate) + Year(PolicyInceptionDate)*12) &amp;gt; 0,&lt;/P&gt;&lt;P&gt; IF (Day(ClaimDate) &amp;gt;= Day(PolicyInceptionDate), 1, 0), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very proud of this one though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 16:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751314#M267893</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-01T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751315#M267894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;That's exactly what I'm trying to accomplish. But you don't need to tag PolicyInceptionDate to know in what PolicyMonth the Claim fits... You only need to calculate the PolicyMonth of the ClaimDate versus the corresponding PolicyInceptionDate. See my example below.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 16:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751315#M267894</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-01T16:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751316#M267895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, I appreciate the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 16:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751316#M267895</guid>
      <dc:creator />
      <dc:date>2014-12-01T16:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751317#M267896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This document does some of the things we discussed above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work pretty well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 17:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751317#M267896</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-01T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Month Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751318#M267897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, I will take a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 17:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Month-Periods/m-p/751318#M267897</guid>
      <dc:creator />
      <dc:date>2014-12-01T17:04:53Z</dc:date>
    </item>
  </channel>
</rss>

