<?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: Product Portfolio Age Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021522#M929777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Age function returns an integer value. If you want fractions the you'll have to use something like (Today()-MCAZActionDate)/365&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 08:10:23 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-18T08:10:23Z</dc:date>
    <item>
      <title>Product Portfolio Age Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021521#M929776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone assist with the attached QV application.&amp;nbsp; I am calculating product portfolio age based on an "Action Date" and today' s date.&amp;nbsp; I have two ages, one is the PortfolioAge and the other PortfolioAgeLong.&amp;nbsp; The PortfolioAge is in numeric form so that i can be able to use the class function to build charts with product age class intervals.&amp;nbsp; The PortfolioAgeLong should give the true product age from the "ActionDate" in years, months and days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application seems not to be calculating the right ages as can be seen from the example below when reference is made to the ActionDate and today's date which means there is something wrong with the script:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="118505" alt="Screen Shot 2016-03-18 at 09.51.50.png" class="jive-image image-1" src="/legacyfs/online/118505_Screen Shot 2016-03-18 at 09.51.50.png" style="height: 253px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please assist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Christopher Chitemerere

Removed the calculation of fractional ages as this has been answered by Gysbert&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/Product-Portfolio-Age-Analysis/m-p/1021521#M929776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Product Portfolio Age Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021522#M929777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Age function returns an integer value. If you want fractions the you'll have to use something like (Today()-MCAZActionDate)/365&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021522#M929777</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-18T08:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Product Portfolio Age Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021523#M929778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Gysbert for an answer to the last part of my question.&amp;nbsp; The ages calculated in the application are wrong, can you assist on this through the attached application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021523#M929778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Product Portfolio Age Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021524#M929779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See here:&lt;A href="https://community.qlik.com/message/199786"&gt;Re: Age in Year Month Day Format&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;age(Today(),MCAZActionDate) &amp;amp; ' Years and ' &amp;amp;(if(day(Today()) &amp;gt;= day(MCAZActionDate),&lt;/P&gt;&lt;P&gt;&amp;nbsp; mod((Year(Today())*12+Month(Today()))-(Year(MCAZActionDate)*12+Month(MCAZActionDate)),12),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(mod((Year(Today())*12+Month(Today()))-(Year(MCAZActionDate)*12+Month(MCAZActionDate)),12)=0,11,mod((Year(Today())*12+Month(Today()))-(Year(MCAZActionDate)*12+Month(MCAZActionDate)),12)-1))) &amp;amp;' Months and ' &amp;amp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; (if(day(Today()) &amp;gt;= day(MCAZActionDate),&amp;nbsp; day(Today()) - day(MCAZActionDate),&amp;nbsp; Today()-AddMonths(MCAZActionDate,12*age(Today(),MCAZActionDate)+mod(Year(Today())*12+Month(Today())-Year(MCAZActionDate)*12+Month(MCAZActionDate),12)-1))+1)&amp;nbsp; &amp;amp; ' days'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021524#M929779</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-18T08:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Product Portfolio Age Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021525#M929780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-Portfolio-Age-Analysis/m-p/1021525#M929780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T11:22:34Z</dc:date>
    </item>
  </channel>
</rss>

