<?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: Creating age filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080513#M921446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757;"&gt; DOB,&lt;BR /&gt;"FULL_NM",&lt;BR /&gt;"PAT_KEY",&lt;BR /&gt;PAT_AGE,&lt;BR /&gt;"FlagField",&lt;BR /&gt;"PAT_MRN_ID",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #ff0000;"&gt;If(Age(Now(), DOB) &amp;gt;= 18, '18 years or older', 'Younger then 18') as "FlagField"&lt;/SPAN&gt;;&lt;BR /&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; SELECT DOB,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;extract (year from (age(current_date,dob))) as PAT_AGE,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;"FULL_NM",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;"PAT_KEY",&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;"PAT_MRN_ID"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 18:15:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-21T18:15:02Z</dc:date>
    <item>
      <title>Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080508#M921437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a filter in my Qlikview app for age. I am trying to create a multi box that allows us to select is a patient is 18 years or older, or younger then 18. I have a data field being pulled in from a sql statement Pat_Age. Any suggestions on how I can create those on screen filters would be appreciated. &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/Creating-age-filter/m-p/1080508#M921437</guid>
      <dc:creator>cjett7769</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080509#M921440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Age(Now(), Pat_Age) &amp;gt;= 18, '18 years or older', 'Younger then 18') as FlagField;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Select *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source....;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080509#M921440</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-21T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080510#M921443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest is to create an extra field in the script based on Pat_Age:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...lots of fields,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pat_Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Pat_Age&amp;gt;=18,'18 or older','Under 18') as Is18plus;&lt;/P&gt;&lt;P&gt;SQL SELECT ... FROM ... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the new Is18Plus field in your multibox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Altermatively you can also use the expression &lt;SPAN style="font-size: 13.3333px;"&gt;If(Pat_Age&amp;gt;=18,'18 or older','Under 18')&lt;/SPAN&gt; in your multibox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080510#M921443</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-21T17:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080511#M921444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your assistance. Running into some issues. Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&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;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"FULL_NM"&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;"PAT_KEY"&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;PAT_AGE&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;"FlagField"&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;"PAT_MRN_ID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT DOB,&lt;BR /&gt; extract (year from (age(current_date,dob))) as PAT_AGE,&lt;BR /&gt; If(Age(Now(), Pat_Age) &amp;gt;= 18, '18 years or older', 'Younger then 18') as "FlagField",&lt;BR /&gt; &lt;BR /&gt; "FULL_NM",&lt;BR /&gt; "PAT_KEY",&lt;BR /&gt; "PAT_MRN_ID" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I don't know why the load of the data is failing. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080511#M921444</guid>
      <dc:creator>cjett7769</dc:creator>
      <dc:date>2016-04-21T17:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080512#M921445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably because your database server doesn't understand the Qlikview script syntax. Put the if statement in the preceding load like Sunny and I did in the examples we posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080512#M921445</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-21T18:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating age filter</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080513#M921446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757;"&gt; DOB,&lt;BR /&gt;"FULL_NM",&lt;BR /&gt;"PAT_KEY",&lt;BR /&gt;PAT_AGE,&lt;BR /&gt;"FlagField",&lt;BR /&gt;"PAT_MRN_ID",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #ff0000;"&gt;If(Age(Now(), DOB) &amp;gt;= 18, '18 years or older', 'Younger then 18') as "FlagField"&lt;/SPAN&gt;;&lt;BR /&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; SELECT DOB,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;extract (year from (age(current_date,dob))) as PAT_AGE,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;"FULL_NM",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;"PAT_KEY",&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;"PAT_MRN_ID"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-age-filter/m-p/1080513#M921446</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-21T18:15:02Z</dc:date>
    </item>
  </channel>
</rss>

