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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Group by in Load

Hi!,

I havbe a problem when i include a sentence group by in a load sentence, give a error but i don't understand why,

udp_hh:

LOAD
@IdUserDaily,
 
COMPANY,
 
WORKGROUP,
 
@Fecha,
 
HORA_MIN,
USERNAME,
trim(upper(USERNAME)) as RUT,
SUM(TIMEUSERLOGGEDIN) as TIMEUSERLOGGEDIN ,
 
FULLNAME

FROM $(PathQvd)user_daily_????.qvd (qvd)
WHERE COMPANY='LIPIGAS'
GROUP BY USERNAME
;

please help me, thanks a lot!

1 Reply
Not applicable
Author

You have to group all the columns that you did not execute any calculation such as Count, Sum etc..

Exemple:

LOAD A, B, SUM(C), COUNT(D)

FROM X

GROUP BY A, B

Best.