<?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: Error in calculated dimension (Don't know why) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775789#M1048874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because you can't have aggregation functions as a calculated dimension. You have an if statement, but inside the if statement you have the following: sum(CantidadAdjuntada) - sum(CantidadEntregada). It doesn't know which dimension to do the sums by, since it is not specifed. Hence why it thinks you are using an aggregation as a calculated dimension. So what you want to do is wrap your function in an aggr() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(IF(If((sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0), Aggr(MAX(AutoDate), CodigoWeb), '-') - Date &amp;lt;60, PurgeChar(Class(If((sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0), Aggr(MAX(AutoDate), CodigoWeb), '-') - Date ,15,'a'),'&amp;gt;=&amp;lt;') , 'Mas de 60'), CodigoWeb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 17:59:37 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-11-05T17:59:37Z</dc:date>
    <item>
      <title>Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775788#M1048873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody. I was working with this dimension, and it was working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(EndDate-Date &amp;lt;60, PurgeChar(Class(EndDate - Date ,15,'a'),'&amp;gt;=&amp;lt;') , '+ 60')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i have to replace the "EndDate" With this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp(If([(QUANTITY1- QUANTITY2] = 0, Aggr(MAX(AutoDate), CodigoWeb), '-')) (this expresion works in the expression part)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when i replace this in the calculate dimension it doesn´t works! I doesnt make sense, the sintax is OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll put an example in the QV!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me i´ve been trying to fix it for a long time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775788#M1048873</guid>
      <dc:creator />
      <dc:date>2014-11-05T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775789#M1048874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because you can't have aggregation functions as a calculated dimension. You have an if statement, but inside the if statement you have the following: sum(CantidadAdjuntada) - sum(CantidadEntregada). It doesn't know which dimension to do the sums by, since it is not specifed. Hence why it thinks you are using an aggregation as a calculated dimension. So what you want to do is wrap your function in an aggr() like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(IF(If((sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0), Aggr(MAX(AutoDate), CodigoWeb), '-') - Date &amp;lt;60, PurgeChar(Class(If((sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0), Aggr(MAX(AutoDate), CodigoWeb), '-') - Date ,15,'a'),'&amp;gt;=&amp;lt;') , 'Mas de 60'), CodigoWeb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 17:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775789#M1048874</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T17:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775790#M1048875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh my god, that's complicated. Actually, it works, but i didnt understand what's going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775790#M1048875</guid>
      <dc:creator />
      <dc:date>2014-11-05T18:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775791#M1048876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775791#M1048876</guid>
      <dc:creator />
      <dc:date>2014-11-05T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775792#M1048877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this formula might be a little nicer on the eyes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=aggr( if(sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0, if(MAX(AutoDate)-Date&amp;lt;60,PurgeChar(Class(MAX(AutoDate)-Date,15,'a'),'&amp;gt;=&amp;lt;'), 'Mas de 60')), CodigoWeb)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im guessing you do not want to sum the CantidadAdjuntada of the CodigoWeb that doesn't have sum(CantidadAdjuntada) - sum(CantidadEntregada) true right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression now, i think it is being lumped into 'Mas de 60'. So use the expression above and check suppress when value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775792#M1048877</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775793#M1048878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two expressions have different results &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. Sory but my english is not good. &lt;SPAN style="font-size: 13.6000003814697px;"&gt;Did you see my example? &lt;/SPAN&gt;Yeah you are right, In a few words i have to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autodate: When the Cant1 - Cant 2 is not&amp;nbsp; 0, i have to choose the max date of the codigoweb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;timestamp(If([(QUANTITY1- QUANTITY2] = 0, Aggr(MAX(AutoDate), CodigoWeb), '-')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then i have to use this part of the function to use as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;=IF(EndDate-Date &amp;lt;60, PurgeChar(Class(EndDate - Date ,15,'a'),'&amp;gt;=&amp;lt;') , '+ 60')&amp;nbsp; and in the part of endate, i have to put all that another date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isnt your first expression right??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775793#M1048878</guid>
      <dc:creator />
      <dc:date>2014-11-05T18:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775794#M1048879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they give different results, im just trying to deduce which is right in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm I guess my question revolves around this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If([(QUANTITY1- QUANTITY2] = 0, Aggr(MAX(AutoDate), CodigoWeb), '-')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[(QUANTITY1- QUANTITY2] = 0, then according to your expression you want the max date.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[(QUANTITY1- QUANTITY2] does not equal zero, according to your expression, it gets the string value '-'. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is that right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cause then when you use it in your expression, you have EndDate - Date, which if you have &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[(QUANTITY1- QUANTITY2] not 0, then it will try to evaluate '-' - Date, which is a string minus a number.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775794#M1048879</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775795#M1048880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that´s right. I wanna the max date but not the max date of AAALLL my values, my max date grouped by the num_webs !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the second expression is the right one. Am i right? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775795#M1048880</guid>
      <dc:creator />
      <dc:date>2014-11-05T18:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775796#M1048881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if i am right i have another little question and im finished &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; . I have doubts if i have to aggr by num_web and by date too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775796#M1048881</guid>
      <dc:creator />
      <dc:date>2014-11-05T19:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775797#M1048882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm what do you want when &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[(QUANTITY1- QUANTITY2] != 0??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In your example, for CodigoWeb = 3, the sum(CantidadAdjuntada) - sum(CantidadEntregada) = 2, what date do you want to use in that case OR do you not want to sum it at all if thats the case? (In your straight table, it is the one with the value of '-' instead of a date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;What class should CodigoWeb = 3 be in your pie chart??which one&amp;nbsp; of '0 a 15', '15 a 30', or 'Mas de 60'??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775797#M1048882</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775798#M1048883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, when the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[(QUANTITY1- QUANTITY2] != 0 i wanna have the "-" This is because the items aren´t delivered yet and there isn´t a finish date. And then i´d put "dont select nulls" (because the client don't wanna see the items that aren´t delivered yet)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775798#M1048883</guid>
      <dc:creator />
      <dc:date>2014-11-05T19:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775799#M1048884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so that should not be summed in that case. Got it. So use my second expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify, when you type in '-', that does not make the value null, it makes it a string equal to a dash. If you want to truly have it null(), either user null(), or do not add the second parameter to the if statement: if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[(QUANTITY1- QUANTITY2], max(Date)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't add a third parameter to the if statement, it automatically sets whats not true to a null value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775799#M1048884</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775800#M1048885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok man, thank you!&lt;/P&gt;&lt;P&gt;I see now that i dont have the "-" in the second expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one question but if you prefeer i can´t put it in another thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i´m groupping by the num_web( is the "primary key" of the table). Should i aggregate by the dates too? because i dont know if the expression is taking the dates when i have 4 or 5 dates in the same num_web&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sory but this expression is a bit too dificult to mee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775800#M1048885</guid>
      <dc:creator />
      <dc:date>2014-11-05T19:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775801#M1048886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example of what your data looks like? Just using the fields CodigoWeb, EndDate, and StartDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this format:&lt;/P&gt;&lt;P&gt;CodigoWeb, EndDate, StartDate&lt;/P&gt;&lt;P&gt;1, 10/02/2014, 14/02/2014&lt;/P&gt;&lt;P&gt;1, 13/02/2014, 17/02/2014&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what it looks like? If not, please post an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775801#M1048886</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775802#M1048887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course! For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="325"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;CodigoWeb&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Fecha&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="129"&gt;Fecha_Fin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;06/02/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;24&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;26/02/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;25&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;26/02/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;34&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;28/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;33&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;28/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;27&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;28/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;28/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;28&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;28/02/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;13/08/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;29&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;31/03/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;14/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;27/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;31&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;14/04/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;35&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;14/04/2014&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;09/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;17&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;15/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;09/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;15/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;27/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;24/04/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;29/05/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775802#M1048887</guid>
      <dc:creator />
      <dc:date>2014-11-05T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775803#M1048888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm i don't see any multiple dates for the web. Can you elaborate more on what u mean with "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;because i dont know if the expression is taking the dates when i have 4 or 5 dates in the same num_web"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show an example of that in your data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775803#M1048888</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T19:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775804#M1048890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be save, I'd also put min around your Date field as well. If you say there are multiple dates for a CodigoWeb, then you'd probably want the longest stretch between any there. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=aggr( if(sum(CantidadAdjuntada) - sum(CantidadEntregada) = 0, if(MAX(AutoDate)-MIN(Date)&amp;lt;60,PurgeChar(Class(MAX(AutoDate)-MIN(Date),15,'a'),'&amp;gt;=&amp;lt;'), 'Mas de 60')), CodigoWeb)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this will assign a class to the length of time from the min Date to the max AutoDate for each CodigoWeb. If that is what you are looking for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 21:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775804#M1048890</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-11-05T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775805#M1048894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sory i´ve just seen this. I´m proving it now. In this case is the same with or without the MIN.&lt;/P&gt;&lt;P&gt;Thank you. You helped me a lot, Please help me the next time! haha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 13:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775805#M1048894</guid>
      <dc:creator />
      <dc:date>2014-11-07T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calculated dimension (Don't know why)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775806#M1048897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can, help me with this please &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/141296"&gt;Doubts about an If statements and replacing values.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 17:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-calculated-dimension-Don-t-know-why/m-p/775806#M1048897</guid>
      <dc:creator />
      <dc:date>2014-11-07T17:14:16Z</dc:date>
    </item>
  </channel>
</rss>

