<?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: Age Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391333#M423003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to use this (with a slight issue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Age(Column B, Alt(Column A, Today()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that if in case for a particular selection there is only a single value for Column A, then it will pick Column A even if you have not explicitly selected it. In all other scenarios, this should work the same way as &lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌'s solution above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 11:41:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-28T11:41:26Z</dc:date>
    <item>
      <title>Age Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391331#M423001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a date column A. &lt;/P&gt;&lt;P&gt;I want to write an expression where I am calculating age(Column B-Column A or &lt;SPAN style="font-size: 13.3333px;"&gt;Column B-Today()&lt;/SPAN&gt; ) by using another column B.&lt;/P&gt;&lt;P&gt;Now I want to select column A and column B for age calculation if any value is selected from Column A and if no value is selected from column A then today's date should be selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 05:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391331#M423001</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-08-28T05:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Age Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391332#M423002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Age( ColumnB &lt;STRONG&gt;,&lt;/STRONG&gt; If( &lt;STRONG&gt;GetSelectedCount&lt;/STRONG&gt;(ColumnA)=1, ColumnA, Today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 05:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391332#M423002</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-28T05:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Age Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391333#M423003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to use this (with a slight issue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Age(Column B, Alt(Column A, Today()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that if in case for a particular selection there is only a single value for Column A, then it will pick Column A even if you have not explicitly selected it. In all other scenarios, this should work the same way as &lt;A href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌'s solution above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 11:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Age-Calculation/m-p/1391333#M423003</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-28T11:41:26Z</dc:date>
    </item>
  </channel>
</rss>

