<?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: Error Invalid expression in a Group By in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624581#M595906</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31657"&gt;@asinha1991&lt;/a&gt;,&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82666"&gt;@sugathirajkumar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many thanks everyone for your quick reply.&lt;/P&gt;&lt;P&gt;So, I try it by adding &lt;EM&gt;NewRate&lt;/EM&gt; in the Group By and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82666"&gt;@sugathirajkumar&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;I don't understand what you mean by "&lt;SPAN&gt;&lt;EM&gt;Take that ) next to 0&lt;/EM&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please could you put in bold the part of my script to modify.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 10:43:50 GMT</pubDate>
    <dc:creator>Black_Hole</dc:creator>
    <dc:date>2019-09-17T10:43:50Z</dc:date>
    <item>
      <title>Error Invalid expression in a Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624572#M595902</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I receive an error message "&lt;EM&gt;Invalid expression&lt;/EM&gt;" when I run the following script.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[TABLE_2]:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ID_Item,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(SUM(Sales)=0 AND SUM(Movements)=0&amp;nbsp; AND NewRate='&amp;gt;=365','90%',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)&amp;gt;0 OR SUM(Movements)&amp;gt;0,' ', &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)=0 AND SUM(Movements)&amp;gt;0) ,ROUND(FABS(SUM(QtyDeb)-SUM(QtyFin))/SUM(QtyDeb),0.01)))) AS NewRateBis&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RESIDENT TABLE_1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GROUP BY ID_Item;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think that this error is due to the expression "New='&amp;gt;=365'".&lt;/P&gt;&lt;P&gt;But, I don't know how I can in order to resolve this problem.&lt;/P&gt;&lt;P&gt;Please could you help me.&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624572#M595902</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2024-11-16T20:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error Invalid expression in a Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624575#M595903</link>
      <description>&lt;P&gt;&lt;I&gt;&lt;FONT color="#54565a"&gt;two ways&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;FONT color="#54565a"&gt;1. Aggregate NewRate&amp;nbsp; if it is not unique for ID_Item&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;FONT color="#54565a"&gt;LOAD&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;EM&gt;ID_Item,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(SUM(Sales)=0 AND SUM(Movements)=0&amp;nbsp; AND maxString(NewRate)='&amp;gt;=365','90%',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)&amp;gt;0 OR SUM(Movements)&amp;gt;0,' ', &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)=0 AND SUM(Movements)&amp;gt;0) ,ROUND(FABS(SUM(QtyDeb)-SUM(QtyFin))/SUM(QtyDeb),0.01)))) AS NewRateBis&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RESIDENT TABLE_1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GROUP BY ID_Item;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. Add it in group by if it is unique&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;I&gt;&lt;FONT color="#54565a"&gt;LOAD&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;ID_Item,&lt;BR /&gt;IF(SUM(Sales)=0 AND SUM(Movements)=0&amp;nbsp; AND NewRate='&amp;gt;=365','90%',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)&amp;gt;0 OR SUM(Movements)&amp;gt;0,' ',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(SUM(Sales)=0 AND SUM(Movements)&amp;gt;0) ,ROUND(FABS(SUM(QtyDeb)-SUM(QtyFin))/SUM(QtyDeb),0.01)))) AS NewRateBis&lt;BR /&gt;RESIDENT TABLE_1&lt;BR /&gt;GROUP BY ID_Item,&lt;I&gt;&lt;FONT color="#54565a"&gt;NewRate&lt;/FONT&gt;&lt;/I&gt;;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624575#M595903</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-09-17T10:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error Invalid expression in a Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624576#M595904</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have to add&amp;nbsp;&lt;EM&gt;NewRate&amp;nbsp;&lt;/EM&gt;inside group by&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624576#M595904</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-17T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error Invalid expression in a Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624578#M595905</link>
      <description>[TABLE_2]:&lt;BR /&gt;LOAD&lt;BR /&gt;ID_Item,&lt;BR /&gt;IF(SUM(Sales)=0 AND SUM(Movements)=0 AND NewRate='&amp;gt;=365','90%',&lt;BR /&gt;IF(SUM(Sales)&amp;gt;0 OR SUM(Movements)&amp;gt;0,' ',&lt;BR /&gt;IF(SUM(Sales)=0 AND SUM(Movements)&amp;gt;0 ,&lt;BR /&gt;ROUND(FABS(SUM(QtyDeb)-SUM(QtyFin))/SUM(QtyDeb),0.01)))) AS NewRateBis&lt;BR /&gt;RESIDENT TABLE_1&lt;BR /&gt;GROUP BY ID_Item;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Take that ) next to 0</description>
      <pubDate>Tue, 17 Sep 2019 10:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624578#M595905</guid>
      <dc:creator>sugathirajkumar</dc:creator>
      <dc:date>2019-09-17T10:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error Invalid expression in a Group By</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624581#M595906</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31657"&gt;@asinha1991&lt;/a&gt;,&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82666"&gt;@sugathirajkumar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many thanks everyone for your quick reply.&lt;/P&gt;&lt;P&gt;So, I try it by adding &lt;EM&gt;NewRate&lt;/EM&gt; in the Group By and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82666"&gt;@sugathirajkumar&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;I don't understand what you mean by "&lt;SPAN&gt;&lt;EM&gt;Take that ) next to 0&lt;/EM&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please could you put in bold the part of my script to modify.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Invalid-expression-in-a-Group-By/m-p/1624581#M595906</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2019-09-17T10:43:50Z</dc:date>
    </item>
  </channel>
</rss>

