<?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 ')' expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186122#M627702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume one or more of your variables does not expand to the correct script code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comment out all calculated fields and rerun your script. Enable one line after the other when load is succeeding, hence you should be able to identify the critical variable easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable the document log or have a close look running the script in debug mode how the variables are expanded to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most cases, it's just a simple typo in spelling the correct variable name..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2016 20:51:32 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-09-15T20:51:32Z</dc:date>
    <item>
      <title>Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186118#M627698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Receiving Error in Expression ')' expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script I'm trying to run is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set calcBidPercent = 'if(FCST = 0, 0, DAMW/FCST)';&lt;/P&gt;&lt;P&gt;Set calcLoadZeroBid = 'round((FCST*.00*DALMP)+(((fabs(RTMTR)-(FCST*.00))*RTLMP)),0)';&lt;/P&gt;&lt;P&gt;Set calcDverZeroBid = 'round(((FCST*.00*DALMP)+((FCST*.00)- RTMTR)*RTLMP )*-1,0)';&lt;/P&gt;&lt;P&gt;//Set calcBidPercentZero = 'if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoadZeroBid), $(calcDverZeroBid)))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcLoad50Bid = 'round((FCST*.50*DALMP)+(((fabs(RTMTR)-(FCST*.50))*RTLMP)),0)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcDver50Bid = 'round(((FCST*.50*DALMP)+((FCST*.50)- RTMTR)*RTLMP )*-1,0)';&lt;/P&gt;&lt;P&gt;//Set calcBidPercent50 = 'if((calcBidPercent) = 0, 0, if(TYPE = 'LOAD', (calcLoad50Bid), (calcDver50Bid)))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcLoad80Bid = 'round((FCST*.80*DALMP)+(((Fabs(RTMTR)-(FCST*.80))*RTLMP)),0)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcDver80Bid = 'round(((FCST*.80*DALMP)+((FCST*.80)- RTMTR)*RTLMP )*-1,0)';&lt;/P&gt;&lt;P&gt;//Set calcBidPercent80 = 'if((calcBidPercent) = 0, 0, if(TYPE = 'LOAD', (calcLoad80Bid),(calcDver80Bid)))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcLoad100Bid = 'round((FCST*1*DALMP)+(((fabs(RTMTR)-(FCST*1))*RTLMP)),0)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcDver100Bid = 'round(((FCST*1*DALMP)+((FCST*1)- RTMTR)*RTLMP )*-1,0)';&lt;/P&gt;&lt;P&gt;//Set calcBidPercent100 = 'if((calcBidPercent) = 0, 0, if(TYPE = 'LOAD', (calcLoad100Bid), (calcDver100Bid)))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcLoad105Bid = 'round((FCST*1.05*DALMP)+(((fabs(RTMTR)-(FCST*1.05))*RTLMP)),0)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcDver105Bid = 'round(((FCST*1.05*DALMP)+((FCST*1.05)- RTMTR)*RTLMP )*-1,0)';&lt;/P&gt;&lt;P&gt;//Set calcBidPercent105 = 'if((calcBidPercent) = 0, 0, if(TYPE = 'LOAD', (calcLoad105Bid), (calcDver105Bid)))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcActualSettle = '(RTMW*RTLMP)+(DAMW*DALMP)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcTraderSettle = 'if($(calcBidPercent) = 0,0,$(calcActualSettle))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcAmountSavedLoad = '($(calcTraderSettle)- $(calcLoad100Bid)*-1)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcAmountSavedDver = '($(calcTraderSettle)-$(calcDver50Bid))';&lt;/P&gt;&lt;P&gt;//Set calcAmountSaved = 'if((calcBidPercent) = 0,0,if(TYPE = 'LOAD',(calcAmountSavedLoad),(calcAmountSavedDver)';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcWorstCaseAmountLoad = 'If($(calcLoad80Bid) &amp;gt; $(calcLoad100Bid),$(calcLoad80Bid), $(calcLoad105Bid))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcWorstCaseAmountDver = 'if($(calcDverZeroBid) &amp;lt; $(calcDver105Bid), $(calcDverZeroBid),$(calcDver105Bid))';&lt;/P&gt;&lt;P&gt;//Set calcWorstCase= 'if(TYPE = 'LOAD', (calcWorestCaseAmountLoad), (calcWorestCaseAmountdver))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcBestCaseAmountLoad = 'if($(calcLoad80Bid) &amp;lt; $(calcLoad100Bid),$(calcLoad80Bid), $(calcLoad105Bid))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcBestCaseAmountDver = 'if($(calcDverZeroBid) &amp;gt; $(calcDver105Bid), $(calcDverZeroBid),$(calcDver105Bid))';&lt;/P&gt;&lt;P&gt;//Set calcBestCase = 'if(TYPE = 'LOAD', (calcWorestCaseAmountLoad), (calcWorestCaseAmountdver))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set calcBestCaseLoadSaved ='($(calcBestCaseAmountLoad)-$(calcLoad100Bid)*-1)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set calcBestCaseDverSaved ='($(calcBestCaseAmountDver)-$(calcDver50Bid))';&lt;/P&gt;&lt;P&gt;//Set calcBestCaseSaved= 'if(TYPE = 'Load',(calcBestCaseLoadSaved),(calcBestCaseDverSaved))';&lt;/P&gt;&lt;P&gt;Set calcWorstCaseLoadSaved ='($(calcWorstCaseAmountLoad)-$(calcLoad100Bid)*-1)';&lt;/P&gt;&lt;P&gt;Set calcWorstCaseDverSaved ='($(calcWorstCaseAmountDver)-$(calcDver50Bid))';&lt;/P&gt;&lt;P&gt;//Set calcWorstCaseSaved= 'if(TYPE = 'Load',(calcWorstCaseLoadSaved),(calcWorstCaseDverSaved))';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CalcFinalData:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; OPDATE, HE, MINUTE, LOCATION, TYPE, FCST, RTMW, RTLMP, RTMTR, DAMW, DALMP,&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(calcBidPercent) as BidPer,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoadZeroBid), $(calcDverZeroBid))) as [0%],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoad50Bid), $(calcDver50Bid))) as [50%],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoa80Bid), $(calcDver80Bid))) as [80%],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoa100Bid), $(calcDver100Bid))) as [100%],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0, 0, if(TYPE = 'LOAD',$(calcLoa105Bid), $(calcDver105Bid))) as [105%],&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(calcActualSettle) as [Actual Settle],&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(calcTraderSettle) as [Trader Settle],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if($(calcBidPercent) = 0,0,if(TYPE = 'LOAD',$(calcAmountSavedLoad),$(calcAmountSavedDver))) as [Amount Saved],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(TYPE = 'LOAD', $(calcWorstCaseAmountLoad), $(calcWorstCaseAmountDver)) as [Worst Case],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(TYPE = 'LOAD', $(calcBesttCaseAmountLoad), $(calcBestCaseAmountDver)) as [Best Case],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(TYPE = 'LOAD', $(calcBestCaseLoadSaved),$(calcBestCaseDverSaved)) as [Best Case Saved],&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(TYPE = 'LOAD', $(calcWorstCaseLoadSaved),$(calcWorstCaseDverSaved)) as [Worst Case Saved]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident FinalData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186118#M627698</guid>
      <dc:creator />
      <dc:date>2016-09-15T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186119#M627699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which variable is causing the error message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View the variables in a text box to narrow it down.&amp;nbsp; After that i'll be able to help you further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 20:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186119#M627699</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2016-09-15T20:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186120#M627700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow..That's a lot of brackets:-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest load one/two variable per line and test the script. Also what Nick&amp;nbsp; above has suggested works too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 20:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186120#M627700</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-09-15T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186121#M627701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ans also if any of the Variable line has Aggregation, you need to do a Group BY in the Load statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 20:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186121#M627701</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-09-15T20:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186122#M627702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume one or more of your variables does not expand to the correct script code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comment out all calculated fields and rerun your script. Enable one line after the other when load is succeeding, hence you should be able to identify the critical variable easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable the document log or have a close look running the script in debug mode how the variables are expanded to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In most cases, it's just a simple typo in spelling the correct variable name..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 20:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186122#M627702</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-15T20:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186123#M627703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set calcActualSettle = '(RTMW*RTLMP)+(DAMW*DALMP)'&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;(RTMW*RTLMP)+(DAMW*DALMP) as [Actual Settle]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be the cause of the error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 20:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186123#M627703</guid>
      <dc:creator />
      <dc:date>2016-09-15T20:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186124#M627704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found several Typo's. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 21:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-expected/m-p/1186124#M627704</guid>
      <dc:creator />
      <dc:date>2016-09-15T21:26:54Z</dc:date>
    </item>
  </channel>
</rss>

