<?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: Calculated dimension with conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-conditions/m-p/918199#M318323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, any ideas?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 13:22:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-29T13:22:25Z</dc:date>
    <item>
      <title>Calculated dimension with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-conditions/m-p/918198#M318322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got stucked with calculated dimension in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, let me explain the main idea of this table. This table shows top 10 employees with biggest average value named Bench_data.&lt;/P&gt;&lt;P&gt;I created a calculated dimension: =aggr(IF(Rank(IF(Month_name&amp;gt;=(vCurMonth),Sum(Bench_Data*Forecast),Sum(Bench_Data)))&amp;lt;=10 ,Emp_name),Emp_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see I have a condition of calculation depending on the period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have an expression like :IF(Month_name&amp;gt;=(vCurMonth),AVG(Bench_Data*Forecast),AVG(Bench_Data))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My management wants to see the average of values for a distinct period and they pick several months in the filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want now is to add the condition, if the dismissed date of employee is &amp;gt; than the max month picked in the filter, this employee won't be shown in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be thankful for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample app is attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 14:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-conditions/m-p/918198#M318322</guid>
      <dc:creator />
      <dc:date>2015-07-28T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-conditions/m-p/918199#M318323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, any ideas?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-with-conditions/m-p/918199#M318323</guid>
      <dc:creator />
      <dc:date>2015-07-29T13:22:25Z</dc:date>
    </item>
  </channel>
</rss>

