Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.