Qlik Community

Ask a Question

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Qlik Highlights 2020 Giveaway! Watch, reply and have a chance to win a $200 Amazon Gift Card! Watch Video
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Anyone see the issue here...

I have the following script and I can't for the life of me figure out why the sum isn't working, can anyone see anything that I'm missing?

QVScript.JPG

It seems to fail with an invalid expression on the sum but I really don't know why!!

1 Solution

Accepted Solutions

You need to either add the other fields not getting aggregated in your Group By Statement or you need to remove them from this resident load.

All the fields which are not aggregated need to show up in Group By Statement.

View solution in original post

2 Replies

You need to either add the other fields not getting aggregated in your Group By Statement or you need to remove them from this resident load.

All the fields which are not aggregated need to show up in Group By Statement.

View solution in original post

Yes I can see the issue.

Your LOAD statement lists a lot of fields (2nd, 3rd and 4th) without aggregation functions that are not specified in the GROUP BY clause. This is forbidden. Either specify them inside an aggregation function call, or list them in the GROUP BY clause.

Best,

Peter