<?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: INVALID EXPRESSION  ,  IF script function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654830#M730229</link>
    <description>&lt;P&gt;When we are performing aggregation at script, eg(Sum):&lt;/P&gt;&lt;P&gt;Group by clause is required.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[DATE_PRODUCTION_3]:
NoConcatenate
LOAD 
    "Date",
    IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1
resident &amp;lt;Your TableName&amp;gt;
Group by
Date;&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 06 Dec 2019 03:33:42 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-12-06T03:33:42Z</dc:date>
    <item>
      <title>INVALID EXPRESSION  ,  IF script function</title>
      <link>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654057#M730228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why the following&amp;nbsp; SCRITP code is FAILING in this "&lt;STRONG&gt;IF"&lt;/STRONG&gt; FUNCTION,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ERROR&lt;STRONG&gt;:&amp;nbsp; Invalidad Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That IF function is located at the bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Conversion_rates_mapping:
Mapping LOAD
 Action, 
 Conver_rate
 FROM [lib://TEST APP/Conversion_rates.xlsx]
(ooxml, embedded labels, table is CONVERSION_RATES);


[DATE_PRODUCTION]:
LOAD
    "Date",
    Action,
    Production,
    Production  *ApplyMap('Conversion_rates_mapping', Action) as SALES_CONVERTED
 FROM [lib://TEST APP/Conversion_rates.xlsx]
(ooxml, embedded labels, table is DATE_PRODUCTION);


[DATE_PRODUCTION_3]:
NoConcatenate
LOAD 
    "Date",
    IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1
    Conversion_rates_mapping:
Mapping LOAD
 Action, 
 Conver_rate
 FROM [lib://TEST APP/Conversion_rates.xlsx]
(ooxml, embedded labels, table is CONVERSION_RATES);


[DATE_PRODUCTION]:
LOAD
    "Date",
    Action,
    Production,
    Production  *ApplyMap('Conversion_rates_mapping', Action) as SALES_CONVERTED
 FROM [lib://TEST APP/Conversion_rates.xlsx]
(ooxml, embedded labels, table is DATE_PRODUCTION);


[DATE_PRODUCTION_3]:
NoConcatenate
LOAD 
    "Date",
    IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1
   
Resident [DATE_PRODUCTION];
Resident [DATE_PRODUCTION];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654057#M730228</guid>
      <dc:creator>luisccmm</dc:creator>
      <dc:date>2024-11-16T01:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID EXPRESSION  ,  IF script function</title>
      <link>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654830#M730229</link>
      <description>&lt;P&gt;When we are performing aggregation at script, eg(Sum):&lt;/P&gt;&lt;P&gt;Group by clause is required.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[DATE_PRODUCTION_3]:
NoConcatenate
LOAD 
    "Date",
    IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1
resident &amp;lt;Your TableName&amp;gt;
Group by
Date;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Dec 2019 03:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654830#M730229</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-12-06T03:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: INVALID EXPRESSION  ,  IF script function</title>
      <link>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654836#M730230</link>
      <description>&lt;P&gt;You're missing Group By in your script.&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;Load Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF(Action='Action1',SUM(SALES_CONVERTED)) as Sales_converted_Action1&lt;/P&gt;&lt;P&gt;Resident Date_Production&lt;/P&gt;&lt;P&gt;Group By Date;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 04:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INVALID-EXPRESSION-IF-script-function/m-p/1654836#M730230</guid>
      <dc:creator>Jesh19</dc:creator>
      <dc:date>2019-12-06T04:16:56Z</dc:date>
    </item>
  </channel>
</rss>

