<?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: Using Round and division generate an error &amp;quot;Invalid expression&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623094#M594201</link>
    <description>&lt;P&gt;Either Move if statement on Unit inside the Sum or Add it within your Group By clause.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 10:26:30 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-09-12T10:26:30Z</dc:date>
    <item>
      <title>Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623076#M594200</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I meet an error&amp;nbsp; "&lt;EM&gt;Invalid expression&lt;/EM&gt;" with the following expression when I run my script.&lt;/P&gt;&lt;P&gt;[Table_00]:&lt;BR /&gt;LOAD&lt;BR /&gt;Item,&lt;BR /&gt;IF(Unit='TH',ROUND((SUM(Amount)/SUM(Quantity)),0.001)/1000,Amount) AS AmountStd&lt;BR /&gt;RESIDENT ARTICLE&lt;BR /&gt;GROUP BY Item;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please could you tell me what's wrong with my expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623076#M594200</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2024-11-16T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623094#M594201</link>
      <description>&lt;P&gt;Either Move if statement on Unit inside the Sum or Add it within your Group By clause.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623094#M594201</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-12T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623196#M594203</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I modify my expression as you advised:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Table_00]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Item,Unit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF(Unit='TH',ROUND((SUM(Amount)/SUM(Quantity)),0.001)/1000,Amount) AS AmountStd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RESIDENT ARTICLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GROUP BY Item, Unit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But, I received again the same error message "&lt;EM&gt;Invalid expression&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;Please could you help me to resolve this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623196#M594203</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2019-09-12T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623201#M594204</link>
      <description>&lt;P&gt;Your else-branch of the if contains with Amount a field which isn't aggregated and also not listed in the group by and therefore you get the syntax error. A bypass for this problem could be just to use two loads like:&lt;/P&gt;&lt;P&gt;[Table_00]:&lt;BR /&gt;LOAD Item, Unit&lt;BR /&gt;ROUND(SUM(Amount)/SUM(Quantity),0.001)/1000 AS AmountStd&lt;BR /&gt;RESIDENT ARTICLE where Unit ='TH' GROUP BY Item, Unit;&lt;/P&gt;&lt;P&gt;LOAD Item,Unit, Amount AS AmountStd&lt;BR /&gt;RESIDENT ARTICLE where where Unit &amp;lt;&amp;gt; 'TH';&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623201#M594204</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-12T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623216#M594205</link>
      <description>&lt;P&gt;Try with this expression :&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(Unit='TH',ROUND((SUM(Amount)/SUM(Quantity)),0.001)/1000,Sum(Amount)) AS AmountStd&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 14:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623216#M594205</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-12T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Round and division generate an error "Invalid expression"</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623244#M594206</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The expressions suggested return the expected result.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 14:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Round-and-division-generate-an-error-quot-Invalid/m-p/1623244#M594206</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2019-09-12T14:38:44Z</dc:date>
    </item>
  </channel>
</rss>

