<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812441#M1027814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM([FARE])&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: 13px;"&gt;+ sum([TAX])&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: 13px;"&gt;+ SUM(&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: 13px;"&gt;IF([DOCTYPE]='2',&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: 13px;"&gt;(-1*fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IsNull([MEAL AMOUNT]) =-1,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; font-size: 13px;"&gt;fabs(IsNull([MEAL AMOUNT]) =-1,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 14:22:35 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2015-02-16T14:22:35Z</dc:date>
    <item>
      <title>error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812440#M1027813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing this expression in Resident table, but it is throwing me an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM([FARE]+ [TAX])+ SUM(IF([DOCTYPE]='2',(-1*fabs(IsNull([MEAL AMOUNT]),0)), fabs(IsNull([MEAL AMOUNT]),0))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS [TOTAL FARE],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812440#M1027813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-16T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812441#M1027814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM([FARE])&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: 13px;"&gt;+ sum([TAX])&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: 13px;"&gt;+ SUM(&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: 13px;"&gt;IF([DOCTYPE]='2',&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: 13px;"&gt;(-1*fabs(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IsNull([MEAL AMOUNT]) =-1,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; font-size: 13px;"&gt;fabs(IsNull([MEAL AMOUNT]) =-1,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812441#M1027814</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-16T14:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812442#M1027815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fabs has 1 parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812442#M1027815</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-16T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812443#M1027816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you want to achive/to sum?&lt;/P&gt;&lt;P&gt;isnull(MEAL_ACCOUNT) is a condition and Returns -1 or 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(-1*fabs(MEAL_ACCOUNT) if MEAL_Count is null? _1*0 = 0 can be achieved easier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812443#M1027816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-16T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812444#M1027817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RUDOLF,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY MENTIONED EXPRESSION THROWING A SYNATX ERROR, THESE ARE THE SOME PARAMETER TO ACHIVE SOME RESULT IN BUSINESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CORRECT ME IF I AM MAKING ANY MISTAKE IN EXPRESSION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 18:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812444#M1027817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-16T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812445#M1027818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Massimo said, function fabs() has one parameter.&amp;nbsp; You're trying to use two, this is your syntax mistake.&lt;/P&gt;&lt;P&gt;As for the business - I don't understand your third sum.&amp;nbsp; What are you trying to calculate here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 20:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812445#M1027818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-16T20:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812446#M1027819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;isnull in TSQL like&amp;nbsp;&amp;nbsp; ISNULL(a,b) returns b if a is null&lt;/P&gt;&lt;P&gt;But it is not in QlikView which is like the IsNull in Basic, Isnull returns True or False (-1 or 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, Fabs requires only one parameter and returns the Absolute value Fabs(-20) = 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 21:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812446#M1027819</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2015-02-16T21:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: error in expression</title>
      <link>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812447#M1027820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your IsNull([MEAL AMOUNT]),0) should read like so:&lt;/P&gt;&lt;P&gt;If(IsNull([MEAL AMOUNT), 0, [MEALAMOUNT])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 21:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-in-expression/m-p/812447#M1027820</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2015-02-16T21:20:22Z</dc:date>
    </item>
  </channel>
</rss>

