Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

raceberos
New Contributor III

Invalid expression:

im wondering why the i always get Invalid expression

please see attached file for reference.

your help is really appreciated.

thanks.

1 Solution

Accepted Solutions
oknotsen
Honored Contributor III

Re: Invalid expression:

The problem is most like caused by the script BEFORE this part.

Could you share some more of the script? Specifically the part where you get the error AND the section before it?

May you live in interesting times!
6 Replies
oknotsen
Honored Contributor III

Re: Invalid expression:

The problem is most like caused by the script BEFORE this part.

Could you share some more of the script? Specifically the part where you get the error AND the section before it?

May you live in interesting times!

Re: Invalid expression:

Hi Reynaldson, you can try adding all fields to the 'group by' clause (expect those inside the Sum), so:

Group by COMPANY, BRANCH..., GLACCTNAME;

ishanbhatt
Contributor II

Re: Invalid expression:

Hi Reynaldson,

Please add all the fields in Group by function except Aggr fields.

Maybe it can solve your problem.

kaanerisen
Contributor III

Re: Invalid expression:

Hi Reynolds,

Onno actually seems right. I think the previous part of the script seems problematic.

But let me make a lucky guess

JournalEntryItems and JEItemsTemp tables are exactly matched over column names and column count. So qlik sense automatically concatenate two tables. During the execution of "Rename Tables" section, there is no JEItemsTemp in memory. Because it has concatenated to main table which is dropped already So, you should add Noconcatenate above "JEItemsTemp" to force the qlik sense not concatenate the table.

Noconcatenate

JEItemsTemp:

load ...

Oops I realized that your group by clause is wrong. You should add all non-aggregated fields to your group by clause

Hope this will help

sasiparupudi1
Honored Contributor III

Re: Invalid expression:

Group By Clause must list all the non-Aggregated fields

raceberos
New Contributor III

Re: Invalid expression:

Good day to all thanks to your response, i already figured out the problem in my script.  i miss ";" in the script before this was loaded... thanks to all

Community Browser