Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Broly
Contributor III
Contributor III

Stupid script error

Hi guys,

It is late and I am going to sleep now, but I get this error:

 

The following error occurred:
Invalid expression
 
test:
load
SHIPMENT_ID,
Min(MinLoadTime) as MinLoadTimeUG
Resident
bi_shipments
Group by DepotID,H_ROUTE_NAME,ORDER_EXECUTION_DATE
Order by DepotID,H_ROUTE_NAME,LASTACTION_TIME_DATA_SOURCE asc
;
 
The following error occurred:
Invalid expression
 
Can someone tell me what is wrong?
 
Thank you, and good night
Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi @Broly 

You need to include "SHIPMENT_ID" in the "group by" to avoid the issue. 

Can you explain, why you mentioned many field in the group by?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @Broly 

You need to include "SHIPMENT_ID" in the "group by" to avoid the issue. 

Can you explain, why you mentioned many field in the group by?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
PrashantSangle

you need to include only non aggregated fields which are using resident table. try below code

 

Test:
load
SHIPMENT_ID,
Min(MinLoadTime) as MinLoadTimeUG
Resident
bi_shipments
Group by SHIPMENT_ID
Order by SHIPMENT_ID asc
;

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂