<?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: Expression Formula Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030410#M347941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to flag the sum(Percentage) for current period + sum(Percentage) for previous period as being larger than 75%, replace the &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;and&lt;/STRONG&gt;&lt;/SPAN&gt; between the two sums by a &lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/SPAN&gt;. There are a few superfluous braces and other characters as well (you don't have to specify sets inside sets). To fix this, remove the &lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;{$&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt; characters in both sum() calls (that's probably the reason why you're getting an expression error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my first assumption is correct, your expression now looks like:&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;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=if(sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num))"}, [CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num)-1)"}, [CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&amp;gt;= .75 ,1,0)&lt;/SPAN&gt;&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note: when getting expression errors, &lt;EM&gt;always start by checking the proper balancing of parentheses, braces, squarze brackets and the lot.&lt;/EM&gt; Might save you a lot of time and effort! The syntax checker will even help you with finding missing markers. Place your cursor immediately before a brace or parenthesis. It will be underlined by a colored stripe (usually orange). The corresponding brace or parenthesis will be underlined as well. If not, the syntax checker will make a guess as to where it should be, and mark the remainder of the expression as faulty using "red wiggly lines".&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 23:20:11 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-01-05T23:20:11Z</dc:date>
    <item>
      <title>Expression Formula Error</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030409#M347940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use this formula in a expression, while i try and do that I get a error. The main purpose of the formula is to "flag the field if it is &amp;gt;.75 with a 1, and if it is less than .75 by a 0. Please let me know if there is a easier way to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num))"}, {$&amp;lt;[CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num)-1)"}, {$&amp;lt;[CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&amp;gt;= .75 ,'1','0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help Scholars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Edited by moderator for title brevity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 22:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030409#M347940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-05T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Formula Error</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030410#M347941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are trying to flag the sum(Percentage) for current period + sum(Percentage) for previous period as being larger than 75%, replace the &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;and&lt;/STRONG&gt;&lt;/SPAN&gt; between the two sums by a &lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/SPAN&gt;. There are a few superfluous braces and other characters as well (you don't have to specify sets inside sets). To fix this, remove the &lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;{$&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt; characters in both sum() calls (that's probably the reason why you're getting an expression error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my first assumption is correct, your expression now looks like:&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;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=if(sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num))"}, [CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({&amp;lt;Reporting_Period_Num ={"$(=max(Reporting_Period_Num)-1)"}, [CDU LOS] = {'*'}&amp;gt;} CDU_Percent)&amp;gt;= .75 ,1,0)&lt;/SPAN&gt;&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note: when getting expression errors, &lt;EM&gt;always start by checking the proper balancing of parentheses, braces, squarze brackets and the lot.&lt;/EM&gt; Might save you a lot of time and effort! The syntax checker will even help you with finding missing markers. Place your cursor immediately before a brace or parenthesis. It will be underlined by a colored stripe (usually orange). The corresponding brace or parenthesis will be underlined as well. If not, the syntax checker will make a guess as to where it should be, and mark the remainder of the expression as faulty using "red wiggly lines".&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 23:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030410#M347941</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-05T23:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Formula Error</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030411#M347942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Formula-Error/m-p/1030411#M347942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-09T16:46:30Z</dc:date>
    </item>
  </channel>
</rss>

