<?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 Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', ' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1680682#M726672</link>
    <description>&lt;P&gt;I'm trying to load entries from a previously loaded table where they are only from the last 3 calendar years. I have created a variable in the wizard with the definition&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue(Year, -Date) - 2&lt;/LI-CODE&gt;&lt;P&gt;and the code in the load script is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LastThreeYears:
LOAD OrderID,
Year 
RESIDENT Orders
WHERE Year &amp;gt;= $(vStartYear);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and it gives me this error. Can someone help please?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Syntax error

Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', 'bitnot', 'LITERAL_NUMBER', ...

LastThreeYears:
LOAD OrderID,
	 Year 
	RESIDENT Orders
	WHERE Year &amp;gt;= &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;=&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;FirstSortedValue(Year, -Date) - 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>sstephans</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', '</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1680682#M726672</link>
      <description>&lt;P&gt;I'm trying to load entries from a previously loaded table where they are only from the last 3 calendar years. I have created a variable in the wizard with the definition&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=FirstSortedValue(Year, -Date) - 2&lt;/LI-CODE&gt;&lt;P&gt;and the code in the load script is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LastThreeYears:
LOAD OrderID,
Year 
RESIDENT Orders
WHERE Year &amp;gt;= $(vStartYear);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and it gives me this error. Can someone help please?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Syntax error

Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not', 'bitnot', 'LITERAL_NUMBER', ...

LastThreeYears:
LOAD OrderID,
	 Year 
	RESIDENT Orders
	WHERE Year &amp;gt;= &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;=&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;FirstSortedValue(Year, -Date) - 2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1680682#M726672</guid>
      <dc:creator>sstephans</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1681663#M726673</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I can see your result Where-condition is:&lt;/P&gt;&lt;P&gt;Where Year &amp;gt;== FirstSortedValue(Year, - Date) - 2&lt;/P&gt;&lt;P&gt;Try to remove equal sign from your vStartYear variable definition.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 12:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1681663#M726673</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2020-03-04T12:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token: '=', expected one of: '(', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'not</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1689994#M726674</link>
      <description>&lt;P&gt;If Sergey's post did the trick, could you please return to the thread and close things out by using the Accept as Solution button on his post for us?&amp;nbsp; This gives him credit for the help and it lets other Members know it worked.&amp;nbsp; If you did something different, consider posting that and then mark it after you post using the button.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, I think I may have found the other issue, I think you may have done a SET instead of&amp;nbsp; LET when you created the variable, which is I am going to post the Help links on those rather than try to explain things, but I think that could be the issue if Sergey's post did not work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Set.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Set.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Let.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Let.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is appreciated if you can be sure to close out your posts.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 18:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-expected-one-of-ZTestw-z-OPERATOR-PLUS-OPERATOR/m-p/1689994#M726674</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-01T18:20:47Z</dc:date>
    </item>
  </channel>
</rss>

