<?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: Getting Age at a specific time using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Age-at-a-specific-time-using-Set-Analysis/m-p/390807#M145734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(&lt;/P&gt;&lt;P&gt;{&amp;lt;DOB = {"&amp;gt;=$(=monthstart(ISLAND_CAL_DT.ADMIT_DT,- Months))&amp;lt;=$(=monthend(ISLAND_CAL_DT.ADMIT_DT,-Months))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to limit DOB field (I assume that's a date field) to the dates between start of month and end of the month, where the month is determined by the user selected date ISLAND_CAL_DT.ADMIT_DT from which &lt;EM&gt;Months &lt;/EM&gt;months are subtracted (so Months field should have a numeric value that indicates the age in months (i.e. an integer)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USER is the field that holds the user (name, ID, what ever you want to show). Instead of the concat() function, you can use any aggregation function you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 21:16:49 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-02-27T21:16:49Z</dc:date>
    <item>
      <title>Getting Age at a specific time using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Age-at-a-specific-time-using-Set-Analysis/m-p/390806#M145733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application where the user is going to select a month-year and I need to show the age of someone at that specific time. I created an island table that contains 1200 values. These consist of the total months all the way up to 100 years old. I am now trying to put set analysis on my chart to using this island table. So if the user selects June-2012 and 6 months old, I want to be able to show all users that turned 6 months old in June-2012. Another example, is if the user selects Jan-2013 and 2 years old, I want to show only people that turned 2 in Jan-2013. I tried to create the set anaylsis but I am having some difficulty. Below is what I am using to get the age from the selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FLOOR&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MONTHEND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ISLAND_CAL_DT.ADMIT_DT&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;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/365.25)*12) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work in a chart, but not in the set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FLOOR&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MONTHEND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ISLAND_CAL_DT.ADMIT_DT&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.25)*12) = P(Months)&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Months is the column from my island table holds all the monnths up to 100 years old. Any help would be appreciated. Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 20:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Age-at-a-specific-time-using-Set-Analysis/m-p/390806#M145733</guid>
      <dc:creator>tchovanec</dc:creator>
      <dc:date>2013-02-27T20:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Age at a specific time using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Age-at-a-specific-time-using-Set-Analysis/m-p/390807#M145734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(&lt;/P&gt;&lt;P&gt;{&amp;lt;DOB = {"&amp;gt;=$(=monthstart(ISLAND_CAL_DT.ADMIT_DT,- Months))&amp;lt;=$(=monthend(ISLAND_CAL_DT.ADMIT_DT,-Months))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to limit DOB field (I assume that's a date field) to the dates between start of month and end of the month, where the month is determined by the user selected date ISLAND_CAL_DT.ADMIT_DT from which &lt;EM&gt;Months &lt;/EM&gt;months are subtracted (so Months field should have a numeric value that indicates the age in months (i.e. an integer)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USER is the field that holds the user (name, ID, what ever you want to show). Instead of the concat() function, you can use any aggregation function you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Age-at-a-specific-time-using-Set-Analysis/m-p/390807#M145734</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-27T21:16:49Z</dc:date>
    </item>
  </channel>
</rss>

