<?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 Age categorisation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992017#M82075</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to create a new category of age bands called age at service.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I already have is age, and services date. I want to create the age at service and then categories them in categories of 5 years.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did the following:&amp;nbsp;patientage-(Age(Today(),service_date)) as age_at_service&lt;/P&gt;
&lt;P&gt;This gives me the right age at service. Then I created categories:&lt;/P&gt;
&lt;P&gt;if(age_at_service &amp;lt;=4, '0-4',&lt;BR /&gt;if(age_at_service &amp;lt;=9, '5-9',&lt;BR /&gt;if(age_at_service &amp;lt;=14, '10-14',&lt;BR /&gt;if(age_at_service &amp;lt;=19, '15-19',&lt;BR /&gt;if(age_at_service &amp;lt;=24, '20-24',&lt;BR /&gt;if(age_at_service &amp;lt;=29, '25-29',&lt;BR /&gt;if(age_at_service &amp;lt;=34, '30-34',&lt;BR /&gt;if(age_at_service &amp;lt;=39, '35-39',&lt;BR /&gt;if(age_at_service &amp;lt;=44, '40-44',&lt;BR /&gt;if(age_at_service &amp;lt;=49, '45-49',&lt;BR /&gt;if(age_at_service &amp;lt;=54, '50-54',&lt;BR /&gt;if(age_at_service &amp;lt;=59, '55-59',&lt;BR /&gt;if(age_at_service &amp;lt;=64, '60-64',&lt;BR /&gt;if(age_at_service &amp;lt;=69, '65-69',&lt;BR /&gt;if(age_at_service &amp;lt;=74, '70-74',&lt;BR /&gt;if(age_at_service &amp;lt;=79, '75-79','80+')))))))))))))))) as age_at_service_cat;&lt;/P&gt;
&lt;P&gt;Now the problem I am facing is that a person can have multiple services date. Which means they can move across categories in the age at service categories through years. Now&amp;nbsp; when this is the case, a person is counted multiple times in one year even though he appeared only in one category/age in that year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how it looks:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashtrik203_0-1665629060170.png" style="width: 700px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91179i2D4A00C352292813/image-dimensions/700x172?v=v2" width="700" height="172" role="button" title="ashtrik203_0-1665629060170.png" alt="ashtrik203_0-1665629060170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So here, the individual is 41 in2017 so only that should be 1, the rest should be blank, for 2018 42 should be 1 and the rest blank and so on and so forth.&lt;/P&gt;
&lt;P&gt;I have tried everything and have found no soultion&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 02:43:51 GMT</pubDate>
    <dc:creator>ashtrik203</dc:creator>
    <dc:date>2022-10-13T02:43:51Z</dc:date>
    <item>
      <title>Age categorisation</title>
      <link>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992017#M82075</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to create a new category of age bands called age at service.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I already have is age, and services date. I want to create the age at service and then categories them in categories of 5 years.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did the following:&amp;nbsp;patientage-(Age(Today(),service_date)) as age_at_service&lt;/P&gt;
&lt;P&gt;This gives me the right age at service. Then I created categories:&lt;/P&gt;
&lt;P&gt;if(age_at_service &amp;lt;=4, '0-4',&lt;BR /&gt;if(age_at_service &amp;lt;=9, '5-9',&lt;BR /&gt;if(age_at_service &amp;lt;=14, '10-14',&lt;BR /&gt;if(age_at_service &amp;lt;=19, '15-19',&lt;BR /&gt;if(age_at_service &amp;lt;=24, '20-24',&lt;BR /&gt;if(age_at_service &amp;lt;=29, '25-29',&lt;BR /&gt;if(age_at_service &amp;lt;=34, '30-34',&lt;BR /&gt;if(age_at_service &amp;lt;=39, '35-39',&lt;BR /&gt;if(age_at_service &amp;lt;=44, '40-44',&lt;BR /&gt;if(age_at_service &amp;lt;=49, '45-49',&lt;BR /&gt;if(age_at_service &amp;lt;=54, '50-54',&lt;BR /&gt;if(age_at_service &amp;lt;=59, '55-59',&lt;BR /&gt;if(age_at_service &amp;lt;=64, '60-64',&lt;BR /&gt;if(age_at_service &amp;lt;=69, '65-69',&lt;BR /&gt;if(age_at_service &amp;lt;=74, '70-74',&lt;BR /&gt;if(age_at_service &amp;lt;=79, '75-79','80+')))))))))))))))) as age_at_service_cat;&lt;/P&gt;
&lt;P&gt;Now the problem I am facing is that a person can have multiple services date. Which means they can move across categories in the age at service categories through years. Now&amp;nbsp; when this is the case, a person is counted multiple times in one year even though he appeared only in one category/age in that year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how it looks:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashtrik203_0-1665629060170.png" style="width: 700px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91179i2D4A00C352292813/image-dimensions/700x172?v=v2" width="700" height="172" role="button" title="ashtrik203_0-1665629060170.png" alt="ashtrik203_0-1665629060170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So here, the individual is 41 in2017 so only that should be 1, the rest should be blank, for 2018 42 should be 1 and the rest blank and so on and so forth.&lt;/P&gt;
&lt;P&gt;I have tried everything and have found no soultion&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 02:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992017#M82075</guid>
      <dc:creator>ashtrik203</dc:creator>
      <dc:date>2022-10-13T02:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Age categorisation</title>
      <link>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992034#M82077</link>
      <description>&lt;DIV id="paraphrase-output-bar" style="display: block; padding-right: 25px; filter: brightness(1);"&gt;Perhaps categorizing as follows;&lt;/DIV&gt;
&lt;DIV style="display: block; padding-right: 25px; filter: brightness(1);"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV style="display: block; padding-right: 25px; filter: brightness(1);"&gt;IF(age_at_service &amp;lt;=4, '0-4',&lt;BR /&gt;IF(age_at_service &amp;gt;4 and age_at_service &amp;lt;=9, '5-9',&lt;BR /&gt;IF(age_at_service &amp;gt;9 and (age_at_service &amp;lt;=14, '10-14',&lt;BR /&gt;IF(age_at_service &amp;gt;14 and age_at_service &amp;lt;=19, '15-19',....................&lt;BR /&gt;IF(age_at_service &amp;gt;74 and age_at_service &amp;lt;=79, '75-79','80+')))))))))))))))) as age_at_service_cat;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Oct 2022 03:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992034#M82077</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-10-13T03:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Age categorisation</title>
      <link>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992038#M82078</link>
      <description>&lt;P&gt;base your evaluations on either MAX(service_date)&amp;nbsp; &amp;nbsp;or Min(service_date)&amp;nbsp; , check with your business user which one they would prefer&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 04:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Age-categorisation/m-p/1992038#M82078</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-13T04:18:04Z</dc:date>
    </item>
  </channel>
</rss>

