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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data Load

Hi All,

I have data something like below

Order NumberHeader_textLineNo
16-101003Inclusive of VAT@ 14.5%, Loading, Unloading and  Transportation Charges04
16-101003as actulas04
16-101003Immediately within next working day after receiving the Purchase Order05
16-101007At the time of unloading the material ,sufficient time to be given to our store persons for the06
16-101007Quality & Quantity inspection, acceptance & unloading.06
16-101003Goods to be supplied against this order must be properly packed to avoid damage during Transit / Storage.07
16-101003Warranty valid for a period of  12 months from the date of supply.08
16-101003shall be done in presence of our company representative at your stock yard10
16-101003To be Obtained by the Supplier at not extra Cost.13
16-101003Any non-tendered materials shall not be supplied until the rates & sizes are approved in writing by the undersigned.14
16-101003Material should be supplied between 8:00 am to 6:00 pm on working days (Monday to Saturday).16
16-10100360 Days credit from the date of Delivery90
16-101004Inclusive of VAT@ 14.5%, Loading, Unloading and  Transportation Charges04
16-101004as actulas04

While Loading the data I need to Combine the same LineNo.

Example: In the First and second Order LineNo is 4 So the Output will be.

Order Number    Header_text                                                                                                                    LineNo

16-101003        Inclusive of VAT@ 14.5%, Loading, Unloading and  Transportation Charges as actuals         04

Please help me with this.

Regards,

Keerthi KS

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Load

          [Order Number],

          Concat( Header_text, ' ') as Header_text,

          LineNo

From <> Group By LineNo, [Order Number];

View solution in original post

16 Replies
tresesco
MVP
MVP

Try like:

Load

          [Order Number],

          Concat( Header_text, ' ') as Header_text,

          LineNo

From <> Group By LineNo, [Order Number];

Not applicable
Author

It gives Error. Below is my Script

TEPurchaseHeader:

LOAD

     Uniqueid as PurchaseHeader_ID,

     Order_Number,

     Concat(Header_text,' ') as Header_text,

     LineNo

FROM

[..\10_data_sources\PurchaseHeader.qvd]

(qvd) Group By Order_Number,LineNo ;

tresesco
MVP
MVP

Include the third field as well in the group by clause like:

...Group By Order_Number,LineNo, Uniqueid ;

Not applicable
Author

It shows invalid expression. Is there any mistake in Concat

tresesco
MVP
MVP

I don't see anything such. Could you post a sample?

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

TEPurchaseHeader:

LOAD

     Uniqueid as PurchaseHeader_ID,

     Order_Number,

     Concat(Header_text,' ') as Header_text,

     LineNo

FROM

[..\10_data_sources\PurchaseHeader.qvd]

(qvd) Group By Order_Number,LineNo, Uniqueid ;


You have to use all the fields used in Load in Group by.

pooja_sn
Creator
Creator

ResultantTable:

Load 
Concat( Header_text, ' ') as Header_text,
[Order Number],
LineNo
resident InputTable
Group By LineNo, [Order Number] ;

DROP table InputTable;

Not applicable
Author

Sorry it was my mistake in the script. Its Working

Not applicable
Author

Can we concatenate based on Uniqueid Order ?

UniqueidOrder_NumberHeader_textLineNo
115M-1008951) Please issue the shop  drawing to our site team and get the approval02
215M-100895prior to work.02
315M-1008952) Conduite the cables as per the shop drawing issued by you.02
415M-1008953) Supply and installation of equipments in good condition.02
515M-100895Others02

Concatenate should be on the above order(Uniqueid).

Regards,

Keerthi KS