<?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 Error: Invalid expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701428#M53709</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone help with my script (I am a newbie on Qliksense) below.&lt;/P&gt;&lt;P&gt;I geting Error: Invalid expression, after loading&amp;nbsp; this script .&amp;nbsp; T&lt;SPAN&gt;hanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;tmp_item_ledger:&lt;BR /&gt;NOCONCATENATE LOAD&lt;BR /&gt;transaction.counter,&lt;BR /&gt;transaction.source_type,&lt;BR /&gt;item.#key,&lt;BR /&gt;FLOOR('$(g_date_max_history)' +1) AS calendar.#key,&lt;BR /&gt;LOWER(company &amp;amp;'|'&amp;amp; FLOOR('$(g_date_max_history)' +1) &amp;amp;'|'&amp;amp; currency.code) AS currency.#key,&lt;BR /&gt;currency.code,&lt;BR /&gt;entry_type AS %item_ledger.entry_type,&lt;BR /&gt;entry_subtype,&lt;BR /&gt;vendor.#key,&lt;BR /&gt;salesperson.#key,&lt;BR /&gt;location.#key,&lt;BR /&gt;item_variant.#key,&lt;BR /&gt;stock_keeping_unit.#key,&lt;BR /&gt;sales_price.#key,&lt;BR /&gt;location_visits.#key,&lt;BR /&gt;forecast.#key,&lt;BR /&gt;//TRIM(YEAR(calendar.#key)&amp;amp;NUM(MONTH(calendar.#key),00) &amp;amp;'|'&amp;amp; pfssalespers_purch_code) as salesperson_work_hours.#key,&lt;BR /&gt;TRIM(year(FLOOR(calendar.#key)) &amp;amp;'|'&amp;amp; month(floor(calendar.#key)) &amp;amp;'|'&amp;amp; location.#key) as salesperson_work_hours.#key,&lt;BR /&gt;global_dimension_1_code,&lt;BR /&gt;global_dimension_2_code,&lt;BR /&gt;veiklos_tipas,&lt;BR /&gt;pardavimu_kanalas,&lt;BR /&gt;input_date,&lt;BR /&gt;document_type,&lt;BR /&gt;item_variant.code,&lt;BR /&gt;source_type,&lt;BR /&gt;unit_of_measure_code,&lt;BR /&gt;correction,&lt;BR /&gt;company,&lt;BR /&gt;item.color,&lt;BR /&gt;item.size,&lt;BR /&gt;consider_for_toc_final_sale,&lt;BR /&gt;SUM(invoiced_quantity) AS stock.invoiced_quantity,&lt;BR /&gt;SUM(quantity) AS stock.quantity,&lt;BR /&gt;SUM(sales_amount) AS stock.sales_amount,&lt;BR /&gt;SUM(cost_amount) AS stock.cost_amount,&lt;BR /&gt;SUM(adjustment_cost_amount) AS stock.adjustment_cost_amount&lt;BR /&gt;RESIDENT tmp_value_entry&lt;BR /&gt;GROUP BY&lt;BR /&gt;transaction.counter,&lt;BR /&gt;transaction.source_type,&lt;BR /&gt;item.#key,&lt;BR /&gt;FLOOR('$(g_date_max_history)' +1),&lt;BR /&gt;LOWER(company &amp;amp;'|'&amp;amp; FLOOR('$(g_date_max_history)' +1) &amp;amp;'|'&amp;amp; currency.code),&lt;BR /&gt;currency.code,&lt;BR /&gt;entry_type,&lt;BR /&gt;entry_subtype,&lt;BR /&gt;vendor.#key,&lt;BR /&gt;salesperson.#key,&lt;BR /&gt;location.#key,&lt;BR /&gt;item_variant.#key,&lt;BR /&gt;stock_keeping_unit.#key,&lt;BR /&gt;sales_price.#key,&lt;BR /&gt;location_visits.#key,&lt;BR /&gt;forecast.#key,&lt;BR /&gt;TRIM(FLOOR(calendar.#key) &amp;amp;'|'&amp;amp; location.#key),&lt;BR /&gt;global_dimension_1_code,&lt;BR /&gt;global_dimension_2_code,&lt;BR /&gt;veiklos_tipas,&lt;BR /&gt;pardavimu_kanalas,&lt;BR /&gt;input_date,&lt;BR /&gt;document_type,&lt;BR /&gt;item_variant.code,&lt;BR /&gt;source_type,&lt;BR /&gt;unit_of_measure_code,&lt;BR /&gt;correction,&lt;BR /&gt;company,&lt;BR /&gt;item.color,&lt;BR /&gt;item.size,&lt;BR /&gt;consider_for_toc_final_sale;&lt;BR /&gt;DROP TABLE tmp_value_entry;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:39:16 GMT</pubDate>
    <dc:creator>UgneKard</dc:creator>
    <dc:date>2024-11-16T18:39:16Z</dc:date>
    <item>
      <title>Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701428#M53709</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone help with my script (I am a newbie on Qliksense) below.&lt;/P&gt;&lt;P&gt;I geting Error: Invalid expression, after loading&amp;nbsp; this script .&amp;nbsp; T&lt;SPAN&gt;hanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;tmp_item_ledger:&lt;BR /&gt;NOCONCATENATE LOAD&lt;BR /&gt;transaction.counter,&lt;BR /&gt;transaction.source_type,&lt;BR /&gt;item.#key,&lt;BR /&gt;FLOOR('$(g_date_max_history)' +1) AS calendar.#key,&lt;BR /&gt;LOWER(company &amp;amp;'|'&amp;amp; FLOOR('$(g_date_max_history)' +1) &amp;amp;'|'&amp;amp; currency.code) AS currency.#key,&lt;BR /&gt;currency.code,&lt;BR /&gt;entry_type AS %item_ledger.entry_type,&lt;BR /&gt;entry_subtype,&lt;BR /&gt;vendor.#key,&lt;BR /&gt;salesperson.#key,&lt;BR /&gt;location.#key,&lt;BR /&gt;item_variant.#key,&lt;BR /&gt;stock_keeping_unit.#key,&lt;BR /&gt;sales_price.#key,&lt;BR /&gt;location_visits.#key,&lt;BR /&gt;forecast.#key,&lt;BR /&gt;//TRIM(YEAR(calendar.#key)&amp;amp;NUM(MONTH(calendar.#key),00) &amp;amp;'|'&amp;amp; pfssalespers_purch_code) as salesperson_work_hours.#key,&lt;BR /&gt;TRIM(year(FLOOR(calendar.#key)) &amp;amp;'|'&amp;amp; month(floor(calendar.#key)) &amp;amp;'|'&amp;amp; location.#key) as salesperson_work_hours.#key,&lt;BR /&gt;global_dimension_1_code,&lt;BR /&gt;global_dimension_2_code,&lt;BR /&gt;veiklos_tipas,&lt;BR /&gt;pardavimu_kanalas,&lt;BR /&gt;input_date,&lt;BR /&gt;document_type,&lt;BR /&gt;item_variant.code,&lt;BR /&gt;source_type,&lt;BR /&gt;unit_of_measure_code,&lt;BR /&gt;correction,&lt;BR /&gt;company,&lt;BR /&gt;item.color,&lt;BR /&gt;item.size,&lt;BR /&gt;consider_for_toc_final_sale,&lt;BR /&gt;SUM(invoiced_quantity) AS stock.invoiced_quantity,&lt;BR /&gt;SUM(quantity) AS stock.quantity,&lt;BR /&gt;SUM(sales_amount) AS stock.sales_amount,&lt;BR /&gt;SUM(cost_amount) AS stock.cost_amount,&lt;BR /&gt;SUM(adjustment_cost_amount) AS stock.adjustment_cost_amount&lt;BR /&gt;RESIDENT tmp_value_entry&lt;BR /&gt;GROUP BY&lt;BR /&gt;transaction.counter,&lt;BR /&gt;transaction.source_type,&lt;BR /&gt;item.#key,&lt;BR /&gt;FLOOR('$(g_date_max_history)' +1),&lt;BR /&gt;LOWER(company &amp;amp;'|'&amp;amp; FLOOR('$(g_date_max_history)' +1) &amp;amp;'|'&amp;amp; currency.code),&lt;BR /&gt;currency.code,&lt;BR /&gt;entry_type,&lt;BR /&gt;entry_subtype,&lt;BR /&gt;vendor.#key,&lt;BR /&gt;salesperson.#key,&lt;BR /&gt;location.#key,&lt;BR /&gt;item_variant.#key,&lt;BR /&gt;stock_keeping_unit.#key,&lt;BR /&gt;sales_price.#key,&lt;BR /&gt;location_visits.#key,&lt;BR /&gt;forecast.#key,&lt;BR /&gt;TRIM(FLOOR(calendar.#key) &amp;amp;'|'&amp;amp; location.#key),&lt;BR /&gt;global_dimension_1_code,&lt;BR /&gt;global_dimension_2_code,&lt;BR /&gt;veiklos_tipas,&lt;BR /&gt;pardavimu_kanalas,&lt;BR /&gt;input_date,&lt;BR /&gt;document_type,&lt;BR /&gt;item_variant.code,&lt;BR /&gt;source_type,&lt;BR /&gt;unit_of_measure_code,&lt;BR /&gt;correction,&lt;BR /&gt;company,&lt;BR /&gt;item.color,&lt;BR /&gt;item.size,&lt;BR /&gt;consider_for_toc_final_sale;&lt;BR /&gt;DROP TABLE tmp_value_entry;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701428#M53709</guid>
      <dc:creator>UgneKard</dc:creator>
      <dc:date>2024-11-16T18:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701453#M53715</link>
      <description>&lt;P&gt;This part of code seems ok. What is the content of variable&amp;nbsp;g_date_max_history?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 09:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701453#M53715</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-05-13T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701474#M53716</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Content of variable&amp;nbsp;&lt;/SPAN&gt;g_date_max_history = DATE('2016.12.31').&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701474#M53716</guid>
      <dc:creator>UgneKard</dc:creator>
      <dc:date>2020-05-13T10:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701528#M53719</link>
      <description>&lt;P&gt;So probably the issue is with the&amp;nbsp;&lt;SPAN&gt;g_date_max_history&amp;nbsp;output in this:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FLOOR('$(g_date_max_history)' +1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does the content of the variable start with equal sign?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 12:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701528#M53719</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-05-13T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701563#M53724</link>
      <description>&lt;P&gt;No the variable contents only date value.&lt;/P&gt;&lt;P&gt;I added the attachment with&amp;nbsp; variables values and the code which is write before this part.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 13:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701563#M53724</guid>
      <dc:creator>UgneKard</dc:creator>
      <dc:date>2020-05-13T13:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Invalid expression</title>
      <link>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701587#M53728</link>
      <description>&lt;P&gt;From the details you sent, I think the variable should work fine.&lt;/P&gt;&lt;P&gt;I think that the 3 "columns" below doesn't need to be on the GROUP BY part. The first one is only a constant value, obviously not necessary, and the other two have fields already listed individually.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FLOOR('$(g_date_max_history)' +1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOWER(company &amp;amp;'|'&amp;amp; FLOOR('$(g_date_max_history)' +1) &amp;amp;'|'&amp;amp; currency.code),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRIM(FLOOR(calendar.#key) &amp;amp;'|'&amp;amp; location.#key),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you to find the issue by commenting out some of the fields, reloading, and checking if the code works or not. Trial and error.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 14:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-Invalid-expression/m-p/1701587#M53728</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-05-13T14:08:12Z</dc:date>
    </item>
  </channel>
</rss>

