Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Generate Missing Data - A Challenger!

Hi all,

I have following data

Voucher Type & No
Date
A/C No.  : 10511  PETTY CASH -JEDDAH
JV9101-Apr-11
JV12828-May-11
CPV215-Aug-11
CPV316-Aug-11
CPV625-Aug-11
CPV726-Aug-11



Voucher Type & No
Date
A/C No.  : 10512  PETTY CASH - OPERATIONS DEPT.
JV40917-Sep-11

I need in this format

Account NameAccount NoVoucher TypeVoucher NoDate
PETTY CASH -JEDDAH10511JV9101-Apr-11
PETTY CASH -JEDDAH10511JV12828-May-11
PETTY CASH -JEDDAH10511CPV215-Aug-11
PETTY CASH -JEDDAH10511CPV316-Aug-11
PETTY CASH -JEDDAH10511CPV625-Aug-11
PETTY CASH -JEDDAH10511CPV726-Aug-11
PETTY CASH - OPERATIONS DEPT.10512JV40917-Sep-11

I also want to omit blank rows having no voucher.

I wrote the below script but cannot populate the Account name and account no fields and cannot omit blank rows

LOAD if((left([Voucher Type & No],6))='A/C No',RIGHT(LEFT([Voucher Type & No],16),5),) as [Account No],

if((left([Voucher Type & No],6))='A/C No',RIGHT([Voucher Type & No],LEN([Voucher Type & No])-18),) as [Account Name],

if((left([Voucher Type & No],6))<>'A/C No',[Voucher Type & No],)) as [Voucher Type],

     F2 as [Voucher No],

     Date,

FROM

(ooxml, embedded labels, header is 2 lines, table is Sheet4);

0 Replies