<?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 Gross Earned Premium(GEP) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232533#M864245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147613_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I used this..&lt;/P&gt;&lt;P&gt;IF([End Date] &amp;gt; $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;(SUM(Premium)/([End Date]-[Reporting Date]))*(IF([End Date] &amp;gt;= $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Dec 2016 10:51:07 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-12-25T10:51:07Z</dc:date>
    <item>
      <title>Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232524#M864236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marry Christmas to everyone who all are connected with Qlik, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I want to calculate Gross earned Premium from Premium field. The logic is mentioned below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Premium/Tenure*Active Day&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Tenure = End Date - Reporting Date+1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Active Days =&amp;nbsp; it will be based on the selection (Calendar) and I have mentioned the condition below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the condition to arrive Active Day;&lt;/P&gt;&lt;P&gt;My selection is 01/04/2016(From) - 30/11/2016(to)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If policy &lt;SPAN style="font-size: 13.3333px;"&gt;Reporting Date&lt;/SPAN&gt; is less than 01/04/2016 then active days will be calculated from 01/04/2016(as per selection), else &lt;SPAN style="font-size: 13.3333px;"&gt;Reporting Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- if End Date is greater 30/11/2016 then active days will be calculated till 30/11/2016 else End Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am showing Premium only for current year(where my reporting date is as per my selection) but my GEP will consider previous policy as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the data where I have calculated Active Days, Tenure and GEP. I wanted Active Days and GEP will be calculated at expression as both will purely depend on the selection which I make at front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran Khan&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-Gross-Earned-Premium-GEP/m-p/1232524#M864236</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232525#M864237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the output you are expecting? Can you provide the same in excel file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 14:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232525#M864237</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-24T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232526#M864238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already given in the excel. My output would be GEP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GEP = Premium/Active Days*Tenure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 14:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232526#M864238</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-24T14:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232527#M864239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check your excel file once more?&lt;/P&gt;&lt;P&gt;I have doubt about your active days calculation !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 14:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232527#M864239</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-24T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232528#M864240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked Manish. Its correct. Let me know your questions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 14:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232528#M864240</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-24T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232529#M864241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- If policy &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Reporting Date&lt;/SPAN&gt; is less than 01/04/2016 then active days will be calculated from 01/04/2016(as per selection), else &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Reporting Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- if End Date is greater 30/11/2016 then active days will be calculated till 30/11/2016 else End Date&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Explain this please !&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As per above.. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If ReportingDate &amp;lt;= vStartDate then something... else something...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So it will never reach to 2nd If...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 14:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232529#M864241</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-24T14:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232530#M864242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if Reporting Date is &amp;lt;vStartDate then vStartDate, else StartDate. Here my fiscal year starts from 01/04/2016 and ends on 31/03/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: If any policy has started on 01/01/2016 and ending on 31/12/2016 and I have made a selection as mentioned my original post. In this case, total duration is 366 days however, my financial year starts from 01/04/2016, then 90 days will go in my previous financial year and remaining will come in current financial year. Therefore, my active days till 30/11/2016 will be 244 days. So the calculation will happen the way i mentioned in my original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to include previous year started policy which are ending in this financial year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you go my points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 18:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232530#M864242</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-24T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232531#M864243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SUM(Premium)/([End Date]-[Reporting Date]))*(IF([End Date] &amp;gt;= $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 09:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232531#M864243</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-25T09:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232532#M864244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="GEP Test.png" class="jive-image image-1" src="/legacyfs/online/147610_GEP Test.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 10:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232532#M864244</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-25T10:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232533#M864245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147613_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I used this..&lt;/P&gt;&lt;P&gt;IF([End Date] &amp;gt; $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;(SUM(Premium)/([End Date]-[Reporting Date]))*(IF([End Date] &amp;gt;= $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 10:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232533#M864245</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-25T10:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232534#M864246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish. It is working fine. But there is one more condition which you missed. If you look at the Policy No 1 in screen shot, It reported twice, once on 01/01/2015 and second on 01/05/2016. However the end date remains the same. Here there will be 2 set of GEP, one would be for the previous year entry and second would be for current year entry.&lt;/P&gt;&lt;P&gt;For previous year entry, Active days will be calculated from 01/04/2106 as this is what I have selected. On the other hand, active days will be calculated from 01/05/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear. Do let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 10:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232534#M864246</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-25T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232535#M864247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide result you are looking for Policy 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 10:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232535#M864247</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-25T10:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232536#M864248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely correct Manish. That's wonderful. I got it where I was doing wrong. I was writing&amp;nbsp; as below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;ReportNum= {"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"}&amp;gt;}Premium)&lt;/P&gt;&lt;P&gt;/(([End Date]-[Reporting Date])+1))*(IF([End Date] &amp;gt;= $(vEndDate), $(vEndDate),[End Date])-IF([Reporting Date]&amp;lt;$(vStartDate),$(vStartDate),[Reporting Date])+1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your valuable and quick support. I am really delighted to get some knowledge from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish you a very Merry Christmas and New Year..!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 11:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232536#M864248</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-25T11:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232537#M864249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 11.7px;"&gt;&lt;A href="https://community.qlik.com/people/khan.imran"&gt;khan.imran&lt;/A&gt; &lt;/STRONG&gt;Kindly close the thread by selecting appropriate answer.&lt;/H6&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 11:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232537#M864249</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-25T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Gross Earned Premium(GEP)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232538#M864250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;This is what I have written in my application expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(Sum({&amp;lt;POL_REPORTING_DATE_claim1={"&amp;gt;=$(new_startup)&amp;lt;=$(NEW_END_DATE_EARNING)"}&amp;gt;}GWP)/&lt;/P&gt;&lt;P&gt;((POL_END_DATE-POL_REPORTING_DATE)+1)&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;((if(NOT((year(POL_END_DATE)*10000+Month(POL_END_DATE)*100+day(POL_END_DATE))&amp;lt;$(VSTARTUP) &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(year(POL_REPORTING_DATE)*10000+Month(POL_REPORTING_DATE)*100+day(POL_REPORTING_DATE))&amp;gt;$(End_date_earning_claim)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(( &lt;/P&gt;&lt;P&gt;year(POL_END_DATE)*10000+Month(POL_END_DATE)*100+day(POL_END_DATE))&amp;gt;$(End_date_earning_claim),date(makedate(left($(End_date_earning_claim),4),mid($(End_date_earning_claim),5,2),right($(End_date_earning_claim),2)),'DD-MM-YYYY'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(( &lt;/P&gt;&lt;P&gt;year(POL_END_DATE)*10000+Month(POL_END_DATE)*100+day(POL_END_DATE))&amp;lt;=$(End_date_earning_claim),date(POL_END_DATE) &lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(( &lt;/P&gt;&lt;P&gt;year(POL_REPORTING_DATE)*10000+Month(POL_REPORTING_DATE)*100+day(POL_REPORTING_DATE))&amp;lt;$(VSTARTUP),date(makedate(left($(VSTARTUP),4),mid($(VSTARTUP),5,2),right($(VSTARTUP),2)),'DD-MM-YYYY'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(( &lt;/P&gt;&lt;P&gt;year(POL_REPORTING_DATE)*10000+Month(POL_REPORTING_DATE)*100+day(POL_REPORTING_DATE))&amp;gt;=$(VSTARTUP),Date(POL_REPORTING_DATE,'DD-MM-YYYY')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ))+1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,POL_RK,POL_NUM_TXT))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 11:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Gross-Earned-Premium-GEP/m-p/1232538#M864250</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2016-12-25T11:11:25Z</dc:date>
    </item>
  </channel>
</rss>

