Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
gets me the following error
Invalid expression
Data:
Load * Inline [
User, Doc
Holden,AR
Holden,SA
Holden,IA
Holden,ED
Holden,CS
Aaron,CS
Brent,AR
Brent,SA
Brent,IA
Brent,ED
]
Any help appreciated, thanks
I think you need to aggregate only per user (i.e. GROUP BY User), not by all three fields, which is too granular.
If you want to use aggregation functions like Sum() in your LOAD, you need to use a GROUP BY clause for all fields that are not embedded in aggregation functions.
You can not have aggregations in the preceeding loads.
change it to a resident load using the necessary group by statements.
finaltype is the problem as it is a result of aggregation
hth
Sasi
I'm not sure I understand.
The following script is still returning errors.
Okay, I did this resident load, and it works except the last sum = 3, for Admin doesn't show up
Your top most star symbol will consider Type field as field which is not included in the GROUP by clause.
Dont use * into your first load but
load
User,
Doc,
sum.....
Your second load only creates 2 distinct values at most.
Ahk, youre right. Same issue though, the admin where type sum = 3 isnt showing up
I do not see a condition for type value 3 in your logic?