<?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 error in calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192504#M54147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a bit more info on what i'm trying to do.&lt;/P&gt;&lt;P&gt;I have records with TurnAroundTimes.&lt;/P&gt;&lt;P&gt;SLEUTEL = KEY&lt;/P&gt;&lt;P&gt;PLANUITVOERING = START&lt;/P&gt;&lt;P&gt;LS_INSERTDATE = END&lt;/P&gt;&lt;P&gt;doorlooptijd2 = TAT&lt;/P&gt;&lt;P&gt;LS_STATUS = every time the status changes, there is a new TAT added&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2627.NoVL.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2627.NoVL.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So now i need to show a table of only the records with SLEUTEL that don't have a value 'LV' in the status field.&lt;/P&gt;&lt;P&gt;Like the one on the image in the red square (SLEUTEL = 2452029), this ons has 4 records, but none of these records have a status 'VL'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 12:23:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-31T12:23:29Z</dc:date>
    <item>
      <title>error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192502#M54145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a calculated dimension that goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=if(count(Aggr(max({&amp;lt;LS_STATUS={'VL'}&amp;gt;}doorlooptijd2),SLEUTEL))=0,"SLEUTEL")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I'm getting an "Error in calculated dimension".&lt;/P&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=if(count({&amp;lt;LS_STATUS={'VL'}&amp;gt;}Aggr(max({&amp;lt;LS_STATUS={'VL'}&amp;gt;}doorlooptijd2),SLEUTEL))=0,"SLEUTEL")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But that also doesn't work...&lt;/P&gt;&lt;P&gt;Anyone knows what the problem is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192502#M54145</guid>
      <dc:creator />
      <dc:date>2011-03-31T11:39:13Z</dc:date>
    </item>
    <item>
      <title>error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192503#M54146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In these cases it is often the aggr combined with other functions which gives the 'error in calculated dimension' ...&lt;/P&gt;&lt;P&gt;don't have the solution here for you ... but try to build the thing up step-by step to see what is giving the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192503#M54146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T11:43:08Z</dc:date>
    </item>
    <item>
      <title>error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192504#M54147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a bit more info on what i'm trying to do.&lt;/P&gt;&lt;P&gt;I have records with TurnAroundTimes.&lt;/P&gt;&lt;P&gt;SLEUTEL = KEY&lt;/P&gt;&lt;P&gt;PLANUITVOERING = START&lt;/P&gt;&lt;P&gt;LS_INSERTDATE = END&lt;/P&gt;&lt;P&gt;doorlooptijd2 = TAT&lt;/P&gt;&lt;P&gt;LS_STATUS = every time the status changes, there is a new TAT added&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2627.NoVL.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2627.NoVL.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So now i need to show a table of only the records with SLEUTEL that don't have a value 'LV' in the status field.&lt;/P&gt;&lt;P&gt;Like the one on the image in the red square (SLEUTEL = 2452029), this ons has 4 records, but none of these records have a status 'VL'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192504#M54147</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:23:29Z</dc:date>
    </item>
    <item>
      <title>error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192505#M54148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;If you remove the count and go with Aggr, it will work. Not sure about you will get desired output.&lt;/PRE&gt;&lt;PRE style="margin:0px;"&gt;&lt;/PRE&gt;&lt;PRE style="margin:0px;"&gt;=if(count(Aggr(max({&amp;lt;LS_STATUS={'VL'}&amp;gt;}doorlooptijd2),SLEUTEL))=0,"SLEUTEL")&lt;/PRE&gt;&lt;PRE style="margin:0px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192505#M54148</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:34:56Z</dc:date>
    </item>
    <item>
      <title>error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192506#M54149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found a way to make it work.&lt;/P&gt;&lt;P&gt;In my script I've created a new field (STATUS_VL) for every record, that evaluates if the status = VL, then the field gets the value 1, else it gets the value 0.&lt;/P&gt;&lt;P&gt;Then I changed my calculate dimension to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=if(Aggr(sum(STATUS_VL),SLEUTEL)=0,SLEUTEL)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and it works! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 08:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-calculated-dimension/m-p/192506#M54149</guid>
      <dc:creator />
      <dc:date>2011-04-01T08:57:52Z</dc:date>
    </item>
  </channel>
</rss>

