Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
krish2459
Creator
Creator

Group by Invalid expression

Hi,

We are trying to load data with group by cause.

 

But wer are getting error as INVALID EXPRESSION.

 

Below is the script.

 

Purchase_Orders:
LOAD
Purch.Doc.,
Item,
CoCd,
"Type",
D,
"Created on",
Vendor,
POrg,
PGr,
Crcy,
replace(ltrim(replace(Material, '0', ' ')), ' ', 0) as Material,
Quantity,
OUn,
"Net value",
Business,
"Inventory as of",
'DXR'as Flag
FROM [lib://AttachedFiles/DXR_Open PO's for DXR_7_22_2019.xlsx]
(ooxml, embedded labels, table is Header_PO);

join(Purchase_Orders)

LOAD
Purch.Doc.,
Item,
Schd.,
Deliv.date,
Stat.d.dte,
C,
Sched.qty.,
"GR qty",
// sum(Sched.qty.)-sum("GR qty") as "Open Qty",

sum(Sched.qty.) as sched_QTY,

Issued,
Business,
"Inventory as of",
'DXR'as Flag
FROM [lib://AttachedFiles/DXR_Open PO's for DXR_7_22_2019.xlsx]
(ooxml, embedded labels, table is Detail_PO);


Concatenate(Pruned_Unique)
PO_DXR:

load *
Resident Purchase_Orders group by Material;

Drop Table Purchase_Orders;

 

Thanks..

Labels (1)
1 Solution

Accepted Solutions
Claudiu_Anghelescu
Specialist
Specialist

Try to list all dimensions not only Material in Group By clause

To help community find solutions, please don't forget to mark as correct.

View solution in original post

1 Reply
Claudiu_Anghelescu
Specialist
Specialist

Try to list all dimensions not only Material in Group By clause

To help community find solutions, please don't forget to mark as correct.