<?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: Converting DOB to Age Range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775823#M275058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;agegroup:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Agemin,Agemax,group&lt;BR /&gt; 0,5,0-5&lt;BR /&gt; 5,10,5-10&lt;BR /&gt; 10,18,10-18&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; age:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DOB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/365 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Age&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; DOB,Name&lt;BR /&gt; 12/28/2013,Pranya&lt;BR /&gt; 09/05/2000, Ram&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Age&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Agemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Agemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; agegroup; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 04:43:51 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2014-12-23T04:43:51Z</dc:date>
    <item>
      <title>Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775822#M275057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have Date of Birth as dd mmm yyyy format in Excel. Appreciate if you could let me know how to convert the DOB to different Age Ranges like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Age (20 - 30)&lt;/P&gt;&lt;P&gt;Age (31- 40)&lt;/P&gt;&lt;P&gt;Age (41 - 50)&lt;/P&gt;&lt;P&gt;Age (51 - 60)&lt;/P&gt;&lt;P&gt;Age (61 - 70)&lt;/P&gt;&lt;P&gt;Age (71 - 80)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 01:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775822#M275057</guid>
      <dc:creator />
      <dc:date>2014-12-23T01:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775823#M275058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;agegroup:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Agemin,Agemax,group&lt;BR /&gt; 0,5,0-5&lt;BR /&gt; 5,10,5-10&lt;BR /&gt; 10,18,10-18&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; age:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DOB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/365 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Age&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; DOB,Name&lt;BR /&gt; 12/28/2013,Pranya&lt;BR /&gt; 09/05/2000, Ram&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Age&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Agemin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Agemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; agegroup; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 04:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775823#M275058</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-12-23T04:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775824#M275059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class(Age(today(), DOB),10)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 07:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775824#M275059</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-23T07:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775825#M275060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual('Age ('&amp;amp;Replace(Class(Age(today(), DOB),10),'&amp;lt;= x &amp;lt;','-')&amp;amp;')',Class(Age(today(), DOB),10))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 09:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775825#M275060</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-23T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775826#M275061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14193266039878274 jive_macro_code" jivemacro_uid="_14193266039878274"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age(today(), DOB) as Age,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Age ('&amp;amp;Replace(Class(Age(today(), DOB),10),'&amp;lt;= x &amp;lt;','-')&amp;amp;')',Class(Age(today(), DOB),10)) as AgeRange;&lt;/P&gt;
&lt;P&gt;LOAD Date(Today()-Ceil(Rand()*35000)) as DOB&lt;/P&gt;
&lt;P&gt;AutoGenerate 300;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_146550_Pic1.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74076_QlikCommunity_Thread_146550_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 09:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775826#M275061</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-23T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775827#M275062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by using class function.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 17:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775827#M275062</guid>
      <dc:creator />
      <dc:date>2014-12-23T17:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting DOB to Age Range</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775828#M275063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for that. Appreciate if you could explain ,&lt;/P&gt;&lt;OL&gt;&lt;LI class="alt"&gt;&lt;SPAN style="color: #000000;"&gt;LOAD *, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt; Age(today(), DOB) as Age, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="alt"&gt;&lt;SPAN style="color: #000000;"&gt; Dual('Age ('&amp;amp;Replace(Class(Age(today(), DOB),10),'&amp;lt;= x &amp;lt;','-')&amp;amp;')',Class(Age(today(), DOB),10)) as AgeRange; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;LOAD Date(Today()-Ceil(Rand()*35000)) as DOB &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="alt"&gt;&lt;SPAN style="color: #000000;"&gt;AutoGenerate 300; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;what these do, as I am new to Qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I also tried to edit my script using the above, but did not work. There is an error in the script. In fact I want to get a Chart "No. of Incidents By Age Range".&amp;nbsp; I also attached the QVW. Appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 00:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-DOB-to-Age-Range/m-p/775828#M275063</guid>
      <dc:creator />
      <dc:date>2014-12-24T00:19:25Z</dc:date>
    </item>
  </channel>
</rss>

