<?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 Calculated dimension with if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-if-condition/m-p/910156#M316039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a prob here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table&amp;nbsp; with top employees with biggest values. A user can pick a number of months in the filter to see top employees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need to achieve is: if the date of dismissal of employee is greater than max month picked in the filter than he will be in this list, if his date of dismissal in earlier than max month picked than this employee won't be included in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the calculated dimension, but it's not working correctly :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(IF(Rank(IF(isNull(Dismissed) or num(Month(Dismissed))&amp;gt;=num(Max(Month(Month_Date))),Sum(Bench_Data)/$(vNoOfMonths)))&amp;lt;=10,Emp_name),Emp_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can test the samle app attached to this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 15:00:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-04T15:00:17Z</dc:date>
    <item>
      <title>Calculated dimension with if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-if-condition/m-p/910156#M316039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a prob here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table&amp;nbsp; with top employees with biggest values. A user can pick a number of months in the filter to see top employees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need to achieve is: if the date of dismissal of employee is greater than max month picked in the filter than he will be in this list, if his date of dismissal in earlier than max month picked than this employee won't be included in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the calculated dimension, but it's not working correctly :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(IF(Rank(IF(isNull(Dismissed) or num(Month(Dismissed))&amp;gt;=num(Max(Month(Month_Date))),Sum(Bench_Data)/$(vNoOfMonths)))&amp;lt;=10,Emp_name),Emp_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can test the samle app attached to this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-if-condition/m-p/910156#M316039</guid>
      <dc:creator />
      <dc:date>2015-08-04T15:00:17Z</dc:date>
    </item>
  </channel>
</rss>

