<?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: Age Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049906#M923855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you happen to know the accuracy of the Age() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for asking this in this post, please let me know if I should start a new post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always used to calculate age by dividing the days number by 365.25 as 365 was not accurate enough. Then, someone pointed out to me that Pope Gregory XIII had pointed out that Julius Caesar was incorrect in suggesting a year was 365.25 days long, it should be 365.2425. Hence the change from the Julian Calendar to the Gregorian Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you happen to know how accurate Qlikview's Age() function is, the help screen does not specify?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 12:00:28 GMT</pubDate>
    <dc:creator>lawrenceiow</dc:creator>
    <dc:date>2016-07-22T12:00:28Z</dc:date>
    <item>
      <title>Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049897#M923846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey There,&lt;/P&gt;&lt;P&gt;i use on my data model at the age function &amp;amp; Interval for some reason i get not the right age, any idea what im doing wrong ?&lt;/P&gt;&lt;P&gt;On sql servel i use this "DATEDIFF(Year,E.BirthDate,GetDate()) EmployeeAge" but i know datediff does not work on qv so i try this other method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121882_Capture.JPG" style="height: 157px; width: 620px;" /&gt;&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/Age-Function/m-p/1049897#M923846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049898#M923847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't the right age 39?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049898#M923847</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T09:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049899#M923848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the Interval &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049899#M923848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T09:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049900#M923849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree the age will be 40 on May 15th, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049900#M923849</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049901#M923850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The interval is showing a rounded number, right? So basically a rough estimation how many years have passed between dates. But that's not "age" as I would define it (which is more like a floor'ed number).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049901#M923850</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049902#M923851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got 39, when I put this in a text box object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval((Today() - MakeDate(1976, 5, 15))/365, 'D')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049902#M923851</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049903#M923852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can explain what you want to calculate? The age of a person? Then use the age() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049903#M923852</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T09:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049904#M923853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try To understand the diff between Interval Vs Age()&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 09:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049904#M923853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T09:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049905#M923854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interval() is a formatting function, like Date() or Timestamp().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Age() calculates age.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 10:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049905#M923854</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049906#M923855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you happen to know the accuracy of the Age() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for asking this in this post, please let me know if I should start a new post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always used to calculate age by dividing the days number by 365.25 as 365 was not accurate enough. Then, someone pointed out to me that Pope Gregory XIII had pointed out that Julius Caesar was incorrect in suggesting a year was 365.25 days long, it should be 365.2425. Hence the change from the Julian Calendar to the Gregorian Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you happen to know how accurate Qlikview's Age() function is, the help screen does not specify?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049906#M923855</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2016-07-22T12:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049907#M923856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about applying Age() to dates before year 1582, i.e. start of the gregorian calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe QV will keep to the gregorian calendar and apply it's rules to the time before it was introduced (proleptic calendar). But I haven't tested it (haven't worked with databases containing these dates so far).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your question is a concern about leap year handling, what concerns do you have exactely?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049907#M923856</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-22T12:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049908#M923857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌, my issue is simply to do with calculating a persons age. From my understanding (which may not be that great) dividing the days by 365.25 would be good enough for the living as it gains 1 day in 128 years. So in calculating the age which include the deceased I've since used 365.2425&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using formulae such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; floor((eventDate-DateOfBirth)/365.2425) as PersonAge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it might be neater to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; age(eventDate, DateOfBirth) as PersonAge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I just wanted to check that it would be safe to use this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049908#M923857</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2016-07-22T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Age Function</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049909#M923858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the Age() function is more accurate in returning an integer number that is commonly regarded as age, i.e. increased by 1 each year whenever the day and month of the DateOfBirth value is reached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 22:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Function/m-p/1049909#M923858</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-22T22:43:59Z</dc:date>
    </item>
  </channel>
</rss>

