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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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!

Labels (1)
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.