Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Addition in script

Hi experts

I am getting the error message "invalid expression". I don't see any issue. Can you please help? Many thanks.

[Fact_temp20]:
Load
*,
(Sum([Actual Cost]) + Sum([Additional Costs])) as [Total ]
Resident [Fact_temp10];
Drop Table [Fact_temp10];

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

all fields which are not used by an aggregation.

View solution in original post

3 Replies
Frank_Hartmann
Master II
Master II

aggregations like "sum" requires a "group by" in Load statement!

TomBond77
Specialist
Specialist
Author

Thanks Frank, which fields must be part of the group by statement? All fields of the first table?

Frank_Hartmann
Master II
Master II

all fields which are not used by an aggregation.