<?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 QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error/m-p/933923#M971069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I ahve reffered same only but here it is written that:&lt;/P&gt;&lt;P&gt;1st expr: If will calculate per dimension and &lt;/P&gt;&lt;P&gt;2nd Expr: If will calculate per row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my data if i put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Name, Product, Sales1, Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a, prod1, 101, 2015-01-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b, prod2, 201, 2015-02-10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b, prod3, 501, 2015-02-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b, prod4, 601, 2015-03-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e, prod5, 701, 2015-04-14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e, prod5, 701, 2015-04-24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, e, prod6, 202, 2015-04-28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, e, prod6, 202, 2015-05-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, h, prod8, 801, 2015-05-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, h, prod9, 1101, 2015-05-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, g, prod10, 1001, 2015-06-10&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for Id 6, i have same row data except Date. Then Only(Date) should not show value of sum(sales) in last column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 12:27:50 GMT</pubDate>
    <dc:creator>nikhilgarg</dc:creator>
    <dc:date>2015-09-11T12:27:50Z</dc:date>
    <item>
      <title>Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933918#M971064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I ahve a doubt that what is the difference between the following 2 expressions?&lt;/P&gt;&lt;P&gt;1: if(Date &amp;gt;= vRefernceDate, sum(Sales1))&lt;/P&gt;&lt;P&gt;2: Sum(If(Date &amp;gt;= vReferenceDate, Sales1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both above cases, for Date() i have by default Only(). Now, in my attached application, for ID 6, i have 2 different dates, then&lt;/P&gt;&lt;P&gt;why i am getting sumofsales2 value in last column ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933918#M971064</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-11T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933919#M971065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2nd is right.. 1st one is wrong...&lt;/P&gt;&lt;P&gt;add one more line for&lt;/P&gt;&lt;P&gt;5, e, prod5, 701, 2015-04-24&lt;/P&gt;&lt;P&gt;Now you will realize that 701 is not coming up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to use now&lt;/P&gt;&lt;P&gt;SUM(if(Date &amp;gt;= vRefernceDate, Sales1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933919#M971065</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-09-11T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933920#M971066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;Plz find updated app. I was using wrong var in 2nd and 3rd exp. But what i want to know is the difference between:&lt;/P&gt;&lt;P&gt;1st expression and 2nd expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933920#M971066</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-11T12:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933921#M971067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nikhil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have alot lines of data, concider using set analysis to optimise the reaction time in your front end charts&lt;/P&gt;&lt;P&gt;where i am from we have a rule never to use if statement in a chart expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex. &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(vReferenceDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933921#M971067</guid>
      <dc:creator>teiswamsler</dc:creator>
      <dc:date>2015-09-11T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933922#M971068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you can find the difference between if(...) and sum(if....)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933922#M971068</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-11T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933923#M971069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I ahve reffered same only but here it is written that:&lt;/P&gt;&lt;P&gt;1st expr: If will calculate per dimension and &lt;/P&gt;&lt;P&gt;2nd Expr: If will calculate per row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my data if i put:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id, Name, Product, Sales1, Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a, prod1, 101, 2015-01-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b, prod2, 201, 2015-02-10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b, prod3, 501, 2015-02-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b, prod4, 601, 2015-03-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e, prod5, 701, 2015-04-14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e, prod5, 701, 2015-04-24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, e, prod6, 202, 2015-04-28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, e, prod6, 202, 2015-05-01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, h, prod8, 801, 2015-05-12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, h, prod9, 1101, 2015-05-21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, g, prod10, 1001, 2015-06-10&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for Id 6, i have same row data except Date. Then Only(Date) should not show value of sum(sales) in last column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933923#M971069</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-11T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933924#M971070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is last column&lt;/P&gt;&lt;P&gt;Sum( If(Date &amp;gt;= vRefernceDate, Sales1) )&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Id 6&lt;/P&gt;&lt;P&gt;I think both dates satisfy the if condition&lt;/P&gt;&lt;P&gt;You'll get the sum(Sales1) --&amp;gt; 202+202&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933924#M971070</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-11T12:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933925#M971071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Ya i know but if we go your way then , for 1st exp:&lt;/P&gt;&lt;P&gt;if(Date &amp;gt;= vRefernceDate, sum(Sales1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here also Date for Id = 6 satisfies condn. Then it should showdata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933925#M971071</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-11T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933926#M971072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in sum(if....) you sum the rows that satisfies the condition, 2 rows&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;6, e, prod6, 202, 2015-04-28&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;6, e, prod6, 202, 2015-05-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in if(date&amp;gt;....................)&amp;nbsp; the date is outside the sum; when there is no aggr function Qlik use only, the only(date) for the dimension value (id=6); when you have more than 1 date for one id, the only(date) is null and the condition isn't satisfied; add only(date) or concat(date, ', ') and you see many dates and a null for only(date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 12:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933926#M971072</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-11T12:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933927#M971073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey THanks,&lt;/P&gt;&lt;P&gt;But i cann't understand one point that:&lt;/P&gt;&lt;P&gt;For below both expressions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1: if(Date &amp;gt;= vRefernceDate, sum(Sales1))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2: Sum(If(Date &amp;gt;= vReferenceDate, Sales1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no aggr function on Date, so in both cases , Only(Date) will be used, am i right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 13:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933927#M971073</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-11T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933928#M971074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think yes for 1, no for 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 2 there is no need of an aggr function because the if is at the row level&lt;/P&gt;&lt;P&gt;also &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(If(only(Date) &amp;gt;= vReferenceDate, Sales1)) seems incorrect because of 2 aggr functions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;can help us to better understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 14:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933928#M971074</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-11T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933929#M971075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;If(Date &amp;gt;= vRefernceDate, sum(Sales1))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This will be evaluated once per value in the dimension. Since Date is a naked field reference, "Only(Date)" will be used instead of "Date"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum(If(Date &amp;gt;= vReferenceDate, Sales1))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In this expression the If() function will be evaluated once per record in the source data, so an aggregation function in it would make no sense and is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933929#M971075</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-14T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933930#M971076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;Thanks HIC but it my doubt may sound stupid but i ma not able to understand why&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If(Date &amp;gt;= vRefernceDate, sum(Sales1))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;This will be evaluated once per value in the dimension ?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum(If(Date &amp;gt;= vReferenceDate, Sales1))&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;In this expression the If() function will be evaluated once per record in the source data ?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I mean how can we tell that any expression will run once per value in dimension or once per record ?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933930#M971076</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-14T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933931#M971077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is defined by the aggregation function. An aggregation function is not like other functions. An aggregation function is like a For-Next loop - looping over all records in the raw data. So, whatever is &lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;outside&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; the aggregation function will be evaluated &lt;SPAN style="font-size: 13.3333px;"&gt;once per dimensional value; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and whatever is &lt;/SPAN&gt;&lt;EM&gt;inside&lt;/EM&gt; will (in addition) be evaluated &lt;SPAN style="font-size: 13.3333px;"&gt;on row-level. Think of it as two loops, one nested in the other.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Below I have marked the aggregation functions in blue, and the expression inside the aggregation function in light blue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Only(&lt;SPAN style="color: #33cccc;"&gt;Date&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;= vRefernceDate, &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #33cccc;"&gt;Sales1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #33cccc;"&gt;If(Date &amp;gt;= vReferenceDate, Sales1)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/qlik-blogpost/3744"&gt;Aggregations and Function Classes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933931#M971077</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-14T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933932#M971078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Thanks for the explaination HIC.&lt;/P&gt;&lt;P&gt;But, If whatever we write inside aggregation function is to be evaluated at row level then,&lt;/P&gt;&lt;P&gt;For: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Only(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33cccc;"&gt;Date&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; &amp;gt;= vRefernceDate, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33cccc;"&gt;Sales1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;Date should be evaluated at row level instead at dimensional level becoz it is under aggregate function Only().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Please correct me if i ma wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933932#M971078</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-09-14T10:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error..</title>
      <link>https://community.qlik.com/t5/QlikView/Error/m-p/933933#M971079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit; color: #0000ff;"&gt;Only(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33cccc;"&gt;Date&lt;/SPAN&gt;) &lt;/STRONG&gt;function is like a For-Next loop: It loops over all the rows, and for each row it checks the value of &lt;STRONG style="color: #33cccc; font-size: 12px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Date&lt;/STRONG&gt;. But an aggregation function returns only one value per dimensional value - also if there are many input rows. The &lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit; color: #0000ff;"&gt;Only(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33cccc;"&gt;Date&lt;/SPAN&gt;)&lt;/STRONG&gt; function returns &lt;STRONG style="color: #33cccc; font-size: 12px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Date&lt;/STRONG&gt; if all rows have the same value, and NULL otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error/m-p/933933#M971079</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-14T11:36:45Z</dc:date>
    </item>
  </channel>
</rss>

