<?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 Avg duration in months using dates from different Gates in same Program in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-duration-in-months-using-dates-from-different-Gates-in-same/m-p/1245514#M395018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having bit of a challenge with the following requirement.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Duration of a stage for a program is equal to Current gate - actual date minus Prior gate actual date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Gate 1-&amp;nbsp; Concept: N/A or ~ ( there is no prior gate so there can not be any duration for it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Gate 2 – Program approved: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1.Calculate duration for one program: Gate 2 actual date minus Gate 1 actual date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.Calculate duration for the next program: Gate 2 actual date minus Gate 1 actual date&lt;/P&gt;&lt;P&gt;3.etc&lt;/P&gt;&lt;P&gt;4.Then add up all durations and divide by number of programs,&amp;nbsp; and then divide by 30 to get months.&lt;/P&gt;&lt;P&gt;5.If Gate 1 or Gate 2 is Pre NPL gate , do not include it in calculation for Gate 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Same as above for the rest of the gates, just need to change Gate numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See data attached - your assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 17:27:13 GMT</pubDate>
    <dc:creator>mrainford</dc:creator>
    <dc:date>2017-03-07T17:27:13Z</dc:date>
    <item>
      <title>Avg duration in months using dates from different Gates in same Program</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-duration-in-months-using-dates-from-different-Gates-in-same/m-p/1245514#M395018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having bit of a challenge with the following requirement.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Duration of a stage for a program is equal to Current gate - actual date minus Prior gate actual date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Gate 1-&amp;nbsp; Concept: N/A or ~ ( there is no prior gate so there can not be any duration for it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Gate 2 – Program approved: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1.Calculate duration for one program: Gate 2 actual date minus Gate 1 actual date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.Calculate duration for the next program: Gate 2 actual date minus Gate 1 actual date&lt;/P&gt;&lt;P&gt;3.etc&lt;/P&gt;&lt;P&gt;4.Then add up all durations and divide by number of programs,&amp;nbsp; and then divide by 30 to get months.&lt;/P&gt;&lt;P&gt;5.If Gate 1 or Gate 2 is Pre NPL gate , do not include it in calculation for Gate 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Same as above for the rest of the gates, just need to change Gate numbers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See data attached - your assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-duration-in-months-using-dates-from-different-Gates-in-same/m-p/1245514#M395018</guid>
      <dc:creator>mrainford</dc:creator>
      <dc:date>2017-03-07T17:27:13Z</dc:date>
    </item>
  </channel>
</rss>

