<?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: Calculate the number of months between two dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892684#M73588</link>
    <description>&lt;P&gt;Thanks. What if I want to see month intervals with % of month. Example using may 1 and June 15, rather than 1 month to show 1.5 months.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 17:05:39 GMT</pubDate>
    <dc:creator>lbrosten</dc:creator>
    <dc:date>2022-02-14T17:05:39Z</dc:date>
    <item>
      <title>Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892125#M73518</link>
      <description>&lt;P&gt;I have 4 dates and I need to be able to calculate the number of months between each. For example: between loss date and report date but also between loss date and closed date. What expression do I use and do I need to create multiple master items? What if one of these dates is null?&lt;/P&gt;
&lt;P&gt;Loss Date, Report Date, First Reserve Date, Closed Date&lt;/P&gt;
&lt;TABLE width="461"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Case No&lt;/TD&gt;
&lt;TD width="80"&gt;Loss Date&lt;/TD&gt;
&lt;TD width="91"&gt;Report Date&lt;/TD&gt;
&lt;TD width="139"&gt;First Reserve Date&lt;/TD&gt;
&lt;TD width="87"&gt;Closed Date&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;TD&gt;May-18&lt;/TD&gt;
&lt;TD&gt;Aug-19&lt;/TD&gt;
&lt;TD&gt;Jan-20&lt;/TD&gt;
&lt;TD&gt;Sep-21&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;101&lt;/TD&gt;
&lt;TD&gt;Jun-16&lt;/TD&gt;
&lt;TD&gt;Apr-18&lt;/TD&gt;
&lt;TD&gt;Jul-18&lt;/TD&gt;
&lt;TD&gt;Jun-20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;102&lt;/TD&gt;
&lt;TD&gt;Jul-21&lt;/TD&gt;
&lt;TD&gt;Sep-21&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Jan-22&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 11 Feb 2022 19:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892125#M73518</guid>
      <dc:creator>lbrosten</dc:creator>
      <dc:date>2022-02-11T19:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892133#M73519</link>
      <description>&lt;P&gt;I guess you could do a simple subtraction of dates e.g.&amp;nbsp;Sum([Report Date]-[Loss Date]) or perhaps find the net working days in between e.g.&amp;nbsp;NetWorkDays([Report Date],[Loss Date]) . To convert to months you need to come up with a business and define the proper denominator.&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 19:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892133#M73519</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2022-02-11T19:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892136#M73520</link>
      <description>&lt;P&gt;You can use this expression for all months intervals (absolute intervals)&lt;/P&gt;
&lt;P&gt;Fabs(Div(LossDate-ReportDate,30)+1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nevopotokcloudinary_1-1644610073787.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72140iD03B3ADCB1186CED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nevopotokcloudinary_1-1644610073787.png" alt="nevopotokcloudinary_1-1644610073787.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 20:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892136#M73520</guid>
      <dc:creator>nevopotokcloudinary</dc:creator>
      <dc:date>2022-02-11T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892681#M73587</link>
      <description>&lt;P&gt;Thanks. Can you tell me more about coming up with a business and define the proper denominator. Not sure what that means.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 17:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892681#M73587</guid>
      <dc:creator>lbrosten</dc:creator>
      <dc:date>2022-02-14T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892684#M73588</link>
      <description>&lt;P&gt;Thanks. What if I want to see month intervals with % of month. Example using may 1 and June 15, rather than 1 month to show 1.5 months.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 17:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892684#M73588</guid>
      <dc:creator>lbrosten</dc:creator>
      <dc:date>2022-02-14T17:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of months between two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892685#M73589</link>
      <description>&lt;P&gt;The methods I suggest will provide the number of days&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) Sum([Report Date]-[Loss Date])&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) NetWorkDays([Report Date],[Loss Date])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;but you require number of months so you need to divide by "how many days per month" .&amp;nbsp; On the solution,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/78831"&gt;@nevopotokcloudinary&lt;/a&gt;&amp;nbsp; suggests to divide by 30.&amp;nbsp; That denominator is the business rule I was referring to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 17:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-the-number-of-months-between-two-dates/m-p/1892685#M73589</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2022-02-14T17:11:42Z</dc:date>
    </item>
  </channel>
</rss>

