<?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 Any easy formula/expression for computing age in years with dateofbirth field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815137#M1025960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Is there a simple formula/expression for computing age in years if you have a dateofbirth field provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave a colleague a simple dual if statement about if dateofbirth&amp;gt;=, &amp;lt; 365.25*18 days to make a yes/no field about person being 18, but it might miss by a fraction of a day or something and wondering if we have something silly like an aghe(dateofbirth) function laying around. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; (Note the sentence was not the actual dual statement, I just typed it out phoenetically here. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 19:04:26 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2015-03-02T19:04:26Z</dc:date>
    <item>
      <title>Any easy formula/expression for computing age in years with dateofbirth field?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815137#M1025960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Is there a simple formula/expression for computing age in years if you have a dateofbirth field provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave a colleague a simple dual if statement about if dateofbirth&amp;gt;=, &amp;lt; 365.25*18 days to make a yes/no field about person being 18, but it might miss by a fraction of a day or something and wondering if we have something silly like an aghe(dateofbirth) function laying around. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; (Note the sentence was not the actual dual statement, I just typed it out phoenetically here. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815137#M1025960</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2015-03-02T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any easy formula/expression for computing age in years with dateofbirth field?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815138#M1025961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&amp;nbsp; &lt;/P&gt;&lt;P&gt;=year(now()) - year(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dateofbirth&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815138#M1025961</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2015-03-02T19:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Any easy formula/expression for computing age in years with dateofbirth field?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815139#M1025962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about the age function?&lt;/P&gt;&lt;P&gt;it calculates the age:&lt;/P&gt;&lt;P&gt;age(today(),date) as age&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815139#M1025962</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2015-03-02T19:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Any easy formula/expression for computing age in years with dateofbirth field?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815140#M1025963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, next time I'll just try typing the obvious in script and see if autofill suggests the function for me.&amp;nbsp; I told my colleague before posting here, 'I'll check on qlikcommunity in case there's something silly easy like age()'.. Completely unexpected. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested in a textbox for myself, with today's date and a birthday earlier and later than today, and it worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 23:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-easy-formula-expression-for-computing-age-in-years-with/m-p/815140#M1025963</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2015-03-02T23:30:01Z</dc:date>
    </item>
  </channel>
</rss>

