<?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: Exclude dimension records based on calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273317#M102277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kiran - I looked at the file but if I select an Employee in addition to the Current Year then the results only related to that Employee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 10:55:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-25T10:55:42Z</dc:date>
    <item>
      <title>Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273308#M102268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate some assistance with the following problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am trying to exclude certain dimension records based on the results of an IF statement. The way that I am doing this is to set the EmpName where a Count is &amp;gt; 5 ELSE set the EmpName to NULL. I then exclude Null values from the straight table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I receive the message "// Error in calculated dimension" when I create a Calculated Dimension using the following statement:&lt;/P&gt;&lt;P&gt;=if(count({total &amp;lt;CurrentYear=CurrentYear, EmpName=EmpName&amp;gt;} TotSals) &amp;gt; 5, EmpName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I use the same statement to set the Text Format to Bold in the Calculated Dimension then the statement works and the Text is set to Bold.&lt;/P&gt;&lt;P&gt;=if(count({total &amp;lt;CurrentYear=CurrentYear, EmpName=EmpName&amp;gt;} TotSals) &amp;gt; 5, '&amp;lt;B&amp;gt;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand how the statement is evaluating correctly for setting the Text Format but not for the overall Dimension level? I have also tried a few variations such as forcing null() into the "else" part of the IF statement but I have not yet been able to get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 08:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273308#M102268</guid>
      <dc:creator />
      <dc:date>2011-10-25T08:16:55Z</dc:date>
    </item>
    <item>
      <title>Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273309#M102269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, it is because you are trying to base a dimension on a measure/ result of an aggregate try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr( if(count({total &amp;lt;CurrentYear=CurrentYear, EmpName=EmpName&amp;gt;} TotSals) &amp;gt; 5, EmpName) , EmpName) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 09:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273309#M102269</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-10-25T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273310#M102270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I tried what you suggested but I am still not getting the results that I need as I don't think I explained the problem clearly enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works if I only have a CurrentYear selected i.e. it shows only those records with a TotSals count &amp;gt; 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even though I am using "total", if an EmpName is selected in addition to CurrentYear then the results are limited to only the single selected EmpName if the count of their TotSals &amp;gt; 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the AGGR function so I think that the problem is how I am using set analysis within the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A worded version of what I am trying to do is:&lt;/P&gt;&lt;P&gt;Show all Employees (EmpName) who have Total Sales (TotSals) of more than 5 for only the Selected Year (Current Year) regardless of whether or not a single Employee (or any other field) has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 09:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273310#M102270</guid>
      <dc:creator />
      <dc:date>2011-10-25T09:37:36Z</dc:date>
    </item>
    <item>
      <title>Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273311#M102271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think i see what you mean, try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= AGGR( if( count( { 1&amp;lt;CurrentYear={$(=only({$} CurrentYear))}&amp;gt;}&amp;nbsp; TotSals) &amp;gt;5,EmpName )&amp;nbsp; , EmpName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 09:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273311#M102271</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-10-25T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273312#M102272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Steve - I have tried that but I only get the correct results if CurrentYear is the only item selected. As soon as I select an Employee then the results in the chart are limited to that person only as opposed to showing all employees across the data set for that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate it if you could have a look at the attached example of the problem and let me have any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273312#M102272</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273313#M102273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273313#M102273</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-10-25T10:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273314#M102274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean by Total Sales &amp;gt; 5 is sum(totSales) then try the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(AGGR(sum({&amp;lt;EmpName=&amp;gt;}TotSals),EmpName)&amp;gt;5,EmpName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached the modified document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273314#M102274</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273315#M102275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this out&lt;/P&gt;&lt;P&gt;=if(aggr(count(EmpName),CurrentYear) &amp;gt; 5,EmpName,Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273315#M102275</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273316#M102276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant. That works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for all your help Steve - much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273316#M102276</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273317#M102277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kiran - I looked at the file but if I select an Employee in addition to the Current Year then the results only related to that Employee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273317#M102277</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude dimension records based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273318#M102278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Blessy - this too filters records if an Employee is selected in addition to the Current Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 10:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-dimension-records-based-on-calculation/m-p/273318#M102278</guid>
      <dc:creator />
      <dc:date>2011-10-25T10:57:43Z</dc:date>
    </item>
  </channel>
</rss>

