Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
AlexWest
Creator
Creator

Concat and Group by Error

Hi guys!

Could you please help with concationation of text and making a Group by func?

I have the following script, but there is always an error below:

SMS_mar1:
LOAD
ID,
INSERT_DATE,
"TEXT"
FROM [lib://path/workbook.xlsx]
(ooxml, embedded labels, table is [Sheet 1]);

mini_SMS_mar1:
Load
ID,
INSERT_DATE,
Concat(TEXT) as Text
Resident SMS_mar1
Group By ID;

AlexWest_0-1665575066510.png

 

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Non-aggregated fields must be listed in the group by clause, in your case the 'INSERT_DATE' field

or perhaps aggregate like this;

Max(INSERT_DATE) as INSERT_DATE

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

Non-aggregated fields must be listed in the group by clause, in your case the 'INSERT_DATE' field

or perhaps aggregate like this;

Max(INSERT_DATE) as INSERT_DATE

AlexWest
Creator
Creator
Author

Thanks a lot!
I didn't know that I need to Group by other non-aggregated fields. In all tutorials there were no such mentions about it.