<?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 message &amp;quot;invalid expression&amp;quot; while loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162034#M503847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you will need to use group by over all fields with no aggregation, or separate the load statement.&lt;/P&gt;&lt;P&gt;Imagine the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Unit Sales&lt;BR /&gt;2008 A 5000&lt;BR /&gt;2008 B 8000&lt;BR /&gt;2009 A 6000&lt;BR /&gt;2009 B 5000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now if you want to sum up the Sales and group it by Year you will end up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Sum(Sales)&lt;BR /&gt;2008 13000&lt;BR /&gt;2009 11000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This looks ok and is what we would expect. If we also added the Unit and did not group by the Unit value, what would we expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Unit Sum(Sales)&lt;BR /&gt;2008 A 13000&lt;BR /&gt;2008 B 13000&lt;BR /&gt;2009 A 11000&lt;BR /&gt;2009 B 11000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is obviously wrong so you have to group by the fields that are not part of an aggregation. Or just load Date_Short and your aggregation in one table and you can either join that to the table one way or another or keep it separated and linked with Date_Short as the key field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2009 11:39:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-23T11:39:00Z</dc:date>
    <item>
      <title>error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162030#M503843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When executing the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;ElectricityDaily:&lt;BR /&gt;&lt;BR /&gt;LOAD Date,&lt;BR /&gt; ShortDate,&lt;BR /&gt; Type_ID,&lt;BR /&gt; MonitoringPoint_ID,&lt;BR /&gt; sum(Value_E) as Value_E_Daily,&lt;BR /&gt; Unit_ID&lt;BR /&gt;FROM [QVDs\Data.qvd] (qvd)&lt;BR /&gt;GROUP BY ShortDate;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I get the error "Invalid expression"&lt;/P&gt;&lt;P&gt;I have no idea what the problem is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 01:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162030#M503843</guid>
      <dc:creator />
      <dc:date>2009-11-23T01:40:03Z</dc:date>
    </item>
    <item>
      <title>error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162031#M503844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is because Date, Type_ID, etc... are not mentioned in the group by statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 02:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162031#M503844</guid>
      <dc:creator />
      <dc:date>2009-11-23T02:15:53Z</dc:date>
    </item>
    <item>
      <title>error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162032#M503845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I only want to sum across Date_Short... do I have to include all the fields in the group by?!?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 02:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162032#M503845</guid>
      <dc:creator />
      <dc:date>2009-11-23T02:19:53Z</dc:date>
    </item>
    <item>
      <title>error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162033#M503846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending, what you need to see: if the grouping fullfils your requirement, go for it. If not, you may look for First/Last Sorted Value or Min/Max String.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 03:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162033#M503846</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-23T03:48:15Z</dc:date>
    </item>
    <item>
      <title>error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162034#M503847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you will need to use group by over all fields with no aggregation, or separate the load statement.&lt;/P&gt;&lt;P&gt;Imagine the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Unit Sales&lt;BR /&gt;2008 A 5000&lt;BR /&gt;2008 B 8000&lt;BR /&gt;2009 A 6000&lt;BR /&gt;2009 B 5000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now if you want to sum up the Sales and group it by Year you will end up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Sum(Sales)&lt;BR /&gt;2008 13000&lt;BR /&gt;2009 11000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This looks ok and is what we would expect. If we also added the Unit and did not group by the Unit value, what would we expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year Unit Sum(Sales)&lt;BR /&gt;2008 A 13000&lt;BR /&gt;2008 B 13000&lt;BR /&gt;2009 A 11000&lt;BR /&gt;2009 B 11000&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is obviously wrong so you have to group by the fields that are not part of an aggregation. Or just load Date_Short and your aggregation in one table and you can either join that to the table one way or another or keep it separated and linked with Date_Short as the key field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162034#M503847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-23T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162035#M503848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/jsn"&gt;jsn&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i have 30 columns in my table, so do i need to write all the 30 names in the group by clause, except the column names which i m using with my count or sum function&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 13:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162035#M503848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-15T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162036#M503849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is correct. You need to specify all fields in your group by clause that are not part of an aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 03:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162036#M503849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-16T03:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162037#M503850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/144932"&gt;Karunpreet Soni&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Why would you group by 30 Columns.&lt;/P&gt;&lt;P&gt;That would gave your SQL statement additional headache.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 04:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162037#M503850</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2014-05-16T04:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: error message "invalid expression" while loading</title>
      <link>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162038#M503851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split the query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load Uniqueid, field1, field2 from table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(TalbeA)&lt;/P&gt;&lt;P&gt;Load Uniqueid, Sum(field3) resident TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Create the Key from table1 and by using that key, do Join operation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 04:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-message-quot-invalid-expression-quot-while-loading/m-p/162038#M503851</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-05-16T04:51:21Z</dc:date>
    </item>
  </channel>
</rss>

