<?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: How to create a age group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505744#M751622</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;I included logic for Age &amp;gt; 40 as well. You can remove if it is not needed.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD *,if(Age&amp;lt;=20 ,'Young',&lt;BR /&gt;if(Age&amp;gt;=21 and Age&amp;lt;=30 ,'Middle',&lt;BR /&gt;if(Age&amp;gt;=31 and Age&amp;lt;=40 ,'Upper','Other'&lt;BR /&gt;))) as [Age Group];&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Age&lt;BR /&gt;1&lt;BR /&gt;11&lt;BR /&gt;14&lt;BR /&gt;18&lt;BR /&gt;21&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;19&lt;BR /&gt;25&lt;BR /&gt;32&lt;BR /&gt;42&lt;BR /&gt;54&lt;BR /&gt;65&lt;BR /&gt;88&lt;BR /&gt;100];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 398px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62iF01CF82BEFF5B96C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 262px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61i8107F808DC56EDBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 06:46:44 GMT</pubDate>
    <dc:creator>qlikviewwizard</dc:creator>
    <dc:date>2018-11-14T06:46:44Z</dc:date>
    <item>
      <title>How to create a age group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505715#M751620</link>
      <description>&lt;P&gt;I have AGE filed in my table. I want convert it into Age group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Age&lt;/P&gt;&lt;P&gt;21&lt;/P&gt;&lt;P&gt;14&lt;/P&gt;&lt;P&gt;15&lt;/P&gt;&lt;P&gt;19&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;32&lt;/P&gt;&lt;P&gt;I want covert like if AGE= (1-20) Young, (21-30)Middle. (31-40)Upper&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505715#M751620</guid>
      <dc:creator>Kohli</dc:creator>
      <dc:date>2024-11-16T05:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a age group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505722#M751621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try with simple if else statement in script&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;if(age&amp;gt;0 and age&amp;lt;21,'Young',if(&lt;SPAN&gt;age&amp;gt;21 and age&amp;lt;31,'Middle',if(age&amp;gt;30 and age&amp;lt;41,'Upper')&lt;/SPAN&gt;)) as&amp;nbsp; age_group&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(age&amp;gt;0 and age&amp;lt;21,'Young',if(&lt;/SPAN&gt;&lt;SPAN&gt;age&amp;gt;21 and age&amp;lt;31,'Middle','Upper'&lt;/SPAN&gt;&lt;SPAN&gt;)) as&amp;nbsp; age_group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prashant Sangle&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 06:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505722#M751621</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-11-14T06:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a age group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505744#M751622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;I included logic for Age &amp;gt; 40 as well. You can remove if it is not needed.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD *,if(Age&amp;lt;=20 ,'Young',&lt;BR /&gt;if(Age&amp;gt;=21 and Age&amp;lt;=30 ,'Middle',&lt;BR /&gt;if(Age&amp;gt;=31 and Age&amp;lt;=40 ,'Upper','Other'&lt;BR /&gt;))) as [Age Group];&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Age&lt;BR /&gt;1&lt;BR /&gt;11&lt;BR /&gt;14&lt;BR /&gt;18&lt;BR /&gt;21&lt;BR /&gt;14&lt;BR /&gt;15&lt;BR /&gt;19&lt;BR /&gt;25&lt;BR /&gt;32&lt;BR /&gt;42&lt;BR /&gt;54&lt;BR /&gt;65&lt;BR /&gt;88&lt;BR /&gt;100];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 398px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62iF01CF82BEFF5B96C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 262px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61i8107F808DC56EDBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 06:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505744#M751622</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-11-14T06:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a age group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505945#M751623</link>
      <description>&lt;P&gt;Can possibly also use IntervalMatch:&lt;/P&gt;&lt;PRE&gt;Age:
Load * Inline [
Age
21
14
15
19
25
32
];

AgeInterval:
Load * Inline [
Min, Max, AgeGroup
1, 20, Young
21, 30, Middle
31, 99, Upper
];

Inner Join IntervalMatch (Age)
Load
Min,
Max
Resident AgeInterval;

Left Join (Age)
Load
Age,
AgeGroup
Resident AgeInterval;
Drop Table AgeInterval;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-age-group/m-p/1505945#M751623</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-11-14T09:37:16Z</dc:date>
    </item>
  </channel>
</rss>

