<?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: QlikSense Calendar Load Error:  Error in expression: ')' expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328052#M618022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're posting in a QlikView forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more targeted answers, you may want to move this Question to a Qlik Sense forum by following the steps outlined here: &lt;A href="https://community.qlik.com/thread/61072"&gt;QlikCommunity Tip: How to move your discussion thread&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 15:25:42 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-05-24T15:25:42Z</dc:date>
    <item>
      <title>QlikSense Calendar Load Error:  Error in expression: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328051#M618018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I'm currently in the process of adding some calendars to my data load, however experiencing some problems. There are 2 calendars for 2 unconnected data sources within the load. My calendar script is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sales Calendar Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesCalendar:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;TempDate AS SalesDate,&lt;/P&gt;&lt;P&gt;week(TempDate) As SalesWeek,&lt;/P&gt;&lt;P&gt;Year(TempDate) As SalesYear,&lt;/P&gt;&lt;P&gt;Month(TempDate) As SalesMonth,&lt;/P&gt;&lt;P&gt;Day(TempDate) As SalesDay,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS SalesQuarter,&lt;/P&gt;&lt;P&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as SalesWeekYear,&lt;/P&gt;&lt;P&gt;WeekDay(TempDate) as SalesWeekDay,&lt;/P&gt;&lt;P&gt;If(Num([TempDate]) &amp;gt;=&amp;nbsp; Num([TempDate]), 0, 0)&amp;nbsp; As Sales_Current_YTD,&lt;/P&gt;&lt;P&gt;If(Num([TempDate]) &amp;gt;=&amp;nbsp; Num([TempDate]), -1, 0)&amp;nbsp; As Sales_LY_YTD,&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;If( InWeekToDate (TempDate, $(CurrentDate),0),1) as SalesWTD, // All Dates This Week To Date This Year&lt;/P&gt;&lt;P&gt;If( InWeekToDate (TempDate, $(CurrentDate), -1),1) as SalesLWTD, // All Dates Previous Week To Date&lt;/P&gt;&lt;P&gt;&amp;nbsp; If( InMonthToDate (TempDate, $(CurrentDate),0),1) as Sales_MTD_TY, // All Dates This Month To Date This Year&lt;/P&gt;&lt;P&gt;If( InMonthToDate (TempDate, $(CurrentDate),-12),1) as Sales_MTD_LY, // All Dates This Month To Date Last Year&lt;/P&gt;&lt;P&gt;If( InMonthToDate (TempDate, $(CurrentDate), -1),1) as Sales_LM_MTD, // All Dates Previous Month To Date&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;inyeartodate(TempDate, $(varToday), 0, 3) * -1&amp;nbsp; AS SalesFinancialCurYTDFlag,&lt;/P&gt;&lt;P&gt;inyeartodate(TempDate, $(varToday), -1, 3) * -1 AS SalesFinancialLastYTDFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Generate a temp table of dates ===&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;date(mindate + IterNo()) AS TempDate&lt;/P&gt;&lt;P&gt;,maxdate // Used in InYearToDate() above, but not kept&lt;/P&gt;&lt;P&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;min(FieldValue([Date], recno()))-1 as mindate,&lt;/P&gt;&lt;P&gt;max(FieldValue([Date], recno())) as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount([Date]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Supplier Deliveries Calendar Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SupDelRR:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;TempDate AS SupDelRRDate,&lt;/P&gt;&lt;P&gt;week(TempDate) As SupDelRRWeek,&lt;/P&gt;&lt;P&gt;Year(TempDate) As SupDelRRYear,&lt;/P&gt;&lt;P&gt;Month(TempDate) As SupDelRRMonth,&lt;/P&gt;&lt;P&gt;Day(TempDate) As SupDelRRDay,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS SupDelRRQuarter,&lt;/P&gt;&lt;P&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as SupDelRRWeekYear,&lt;/P&gt;&lt;P&gt;WeekDay(TempDate) as SupDelRRWeekDay,&lt;/P&gt;&lt;P&gt;If(Num([TempDate]) &amp;gt;=&amp;nbsp; Num([TempDate]), 0, 0)&amp;nbsp; As SupDelRR_Current_YTD,&lt;/P&gt;&lt;P&gt;If(Num([TempDate]) &amp;gt;=&amp;nbsp; Num([TempDate]), -1, 0)&amp;nbsp; As SupDelRR_LY_YTD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;If( InWeekToDate (TempDate, $(CurrentDate),0),1) as SupDelRRWTD, // All Dates This Week To Date This Year&lt;/P&gt;&lt;P&gt;If( InWeekToDate (TempDate, $(CurrentDate), -1),1) as SupDelRRLWTD, // All Dates Previous Week To Date&lt;/P&gt;&lt;P&gt;If( InMonthToDate (TempDate, $(CurrentDate),0),1) as SupDelRR_MTD_TY, // All Dates This Month To Date This Year&lt;/P&gt;&lt;P&gt;If( InMonthToDate (TempDate, $(CurrentDate),-12),1) as SupDelRR_MTD_LY, // All Dates This Month To Date Last Year&lt;/P&gt;&lt;P&gt;If( InMonthToDate (TempDate, $(CurrentDate), -1),1) as SupDelRR_LM_MTD, // All Dates Previous Month To Date&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;inyeartodate(TempDate, $(varToday), 0, 3) * -1&amp;nbsp; AS SupDelRRFinancialCurYTDFlag,&lt;/P&gt;&lt;P&gt;inyeartodate(TempDate, $(varToday), -1, 3) * -1 AS SupDelRRFinancialLastYTDFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Generate a temp table of dates ===&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;date(mindate + IterNo()) AS TempDate&lt;/P&gt;&lt;P&gt;,maxdate // Used in InYearToDate() above, but not kept&lt;/P&gt;&lt;P&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;min(FieldValue([receiptreturndate], recno()))-1 as mindate,&lt;/P&gt;&lt;P&gt;max(FieldValue([receiptreturndate], recno())) as maxdate&lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount([receiptreturndate]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;And the full error message is below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="selectable" style="margin: 0 0 0 5px;"&gt;The following error occurred:&lt;/P&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Error in expression:&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;')' expected&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message empty" style="font-family: monospace; color: #595959; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;---&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;The error occurred here:&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;SalesCalendar:&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Load&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;TempDate AS SalesDate,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;week(TempDate) As SalesWeek,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Year(TempDate) As SalesYear,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Month(TempDate) As SalesMonth,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Day(TempDate) As SalesDay,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;'Q' &amp;amp; ceil(month(TempDate) / 3) AS SalesQuarter,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as SalesWeekYear,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;WeekDay(TempDate) as SalesWeekDay,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If(Num([TempDate]) &amp;gt;= Num([TempDate]), 0, 0) As Sales_Current_YTD,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If(Num([TempDate]) &amp;gt;= Num([TempDate]), -1, 0) As Sales_LY_YTD,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If( InWeekToDate (TempDate, ,0),1) as SalesWTD,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If( InWeekToDate (TempDate, , -1),1) as SalesLWTD,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If( InMonthToDate (TempDate, ,0),1) as Sales_MTD_TY,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If( InMonthToDate (TempDate, ,-12),1) as Sales_MTD_LY,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;If( InMonthToDate (TempDate, , -1),1) as Sales_LM_MTD,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;inyeartodate(TempDate, , 0, 3) * -1 AS SalesFinancialCurYTDFlag,&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message error" style="font-family: monospace; color: #ff0000; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;inyeartodate(TempDate, , -1, 3) * -1 AS SalesFinancialLastYTDFlag&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message empty" style="font-family: monospace; color: #595959; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;---&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message default" style="font-family: monospace; color: #595959; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Data has not been loaded. Please correct the error and try loading again.&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;////////////////////////////////////////////////////////////////////////////////////////////////&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;&lt;SPAN style="color: #000000;"&gt;Would be grateful for any useful help and advice with this one - thanks in advance&lt;/SPAN&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 10:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328051#M618018</guid>
      <dc:creator />
      <dc:date>2017-05-24T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense Calendar Load Error:  Error in expression: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328052#M618022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're posting in a QlikView forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more targeted answers, you may want to move this Question to a Qlik Sense forum by following the steps outlined here: &lt;A href="https://community.qlik.com/thread/61072"&gt;QlikCommunity Tip: How to move your discussion thread&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328052#M618022</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-24T15:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense Calendar Load Error:  Error in expression: ')' expected</title>
      <link>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328053#M618024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For me also the same Error, Can you please provide the solution for this error ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 04:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikSense-Calendar-Load-Error-Error-in-expression-expected/m-p/1328053#M618024</guid>
      <dc:creator>phaneendradodda</dc:creator>
      <dc:date>2018-10-23T04:25:14Z</dc:date>
    </item>
  </channel>
</rss>

