<?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: Invalid Expression error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088380#M640229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a subclassification field and bucket field with values 1 week, 2week, 1month, 2months, &amp;gt;3months&lt;/P&gt;&lt;P&gt;I want to insert a new bucket value "Total" which has a value of amount for that particular classification or subclassification field.&lt;/P&gt;&lt;P&gt;and the requirement is as&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115579_Capture.JPG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I can calculate this total by using an expression in pivot table but the thing is bucket if a field which is pivoted to be on top as shown in picture. and If I use an expression in chart, it gives total column for each of bucketvalue. but that is not required actually. the requirement is as above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 09:44:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-23T09:44:03Z</dc:date>
    <item>
      <title>Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088373#M640222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code, and Im facing this invalid syntax error for the second expression. though both are same it is showing error. Can anyone help me please...&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp; Date as _kMasterCalendarDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Triparty_bilateral_ind as subclassification, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt_Lcl as AMT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bucket as bucket, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resid_Tnor as RT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product_group as product_group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt_Lcl*Resid_Tnor as WAMNumerator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident SecFund_Full&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where (classification='Reverse Repo' And Triparty_bilateral_ind='Reverse Repo')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Bilateral repo') &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Tri-party repo');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; Date as _kMasterCalendarDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Triparty_bilateral_ind as subclassification, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Amt_Lcl) as AMT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bucket as bucket, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resid_Tnor as RT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product_group as product_group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Amt_Lcl*Resid_Tnor) as WAMNumerator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident SecFund_Full&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where (classification='Reverse Repo' And Triparty_bilateral_ind='Reverse Repo')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Bilateral repo') &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Tri-party repo');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1 is running succesfully but not temp2. the condition used for both is same but some modifications in field values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 03:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088373#M640222</guid>
      <dc:creator />
      <dc:date>2016-02-23T03:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088374#M640223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use Group by statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp2:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&amp;nbsp; Date as _kMasterCalendarDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Triparty_bilateral_ind as subclassification,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Amt_Lcl) as AMT,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bucket as bucket,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resid_Tnor as RT,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product_group as product_group,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Amt_Lcl*Resid_Tnor) as WAMNumerator&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident SecFund_Full&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; where (classification='Reverse Repo' And Triparty_bilateral_ind='Reverse Repo')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Bilateral repo')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR (classification='Repo' And Triparty_bilateral_ind='Tri-party repo')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Date,&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Triparty_bilateral_ind, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;bucket, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Resid_Tnor, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;product_group &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088374#M640223</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-23T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088375#M640224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why you are doing below with resident load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Amt_Lcl) as AMT, ---&amp;gt; This could be issue , try without this first !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088375#M640224</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-02-23T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088376#M640225</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;whenever you use aggregation functions you have to use group by clause.&lt;/P&gt;&lt;P&gt;and in you Temp2 load you are using aggregation functions without group clause therefore it is showing you error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for details see aggregation function&amp;nbsp; in&amp;nbsp; help menu &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088376#M640225</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-02-23T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088377#M640226</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;Remove &lt;STRONG&gt;sum(Amt_Lcl*Resid_Tnor) &lt;/STRONG&gt;in the second load and have it the same as the first load (&lt;STRONG&gt;Amt_Lcl*Resid_Tnor&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088377#M640226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T08:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088378#M640227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you need a group by for all the non-aggregated values.&lt;/P&gt;&lt;P&gt;Second, second table will auto concatenate into the first, so you will land up double counting everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of that, its not clear what you are trying to do - perhaps you should explain this in detail if you want accurate and useful assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088378#M640227</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-23T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088379#M640228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly do you want to have as a result? As pointed out by others before, you cannot use the SUM expression the way you do in the second load, and that is why you get the error. So it is not the code under the 'resident' that poses the problem, but the code above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use Temp1 to calculate the sums, or you could use a mapping and then map the totals in the Temp1. It depends on your aim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 08:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088379#M640228</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2016-02-23T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression error</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088380#M640229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a subclassification field and bucket field with values 1 week, 2week, 1month, 2months, &amp;gt;3months&lt;/P&gt;&lt;P&gt;I want to insert a new bucket value "Total" which has a value of amount for that particular classification or subclassification field.&lt;/P&gt;&lt;P&gt;and the requirement is as&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115579_Capture.JPG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I can calculate this total by using an expression in pivot table but the thing is bucket if a field which is pivoted to be on top as shown in picture. and If I use an expression in chart, it gives total column for each of bucketvalue. but that is not required actually. the requirement is as above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-error/m-p/1088380#M640229</guid>
      <dc:creator />
      <dc:date>2016-02-23T09:44:03Z</dc:date>
    </item>
  </channel>
</rss>

