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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Strange problem with load

Does anyone know what could be wrong with this.

When I load this file the KeyQN gets wrong value.

Thanks.

LOAD

num(Dealer_LOCAL_DEALER_NUMBER,'#####') as Dealer,

Quotation_QUOTATION_NUMBER as QUOTATION_NUMBER,

Date#(Right(Quotation_LAST_CHANGE,4) &'-' &

right(left(Quotation_LAST_CHANGE,5),2) & '-' &

left(Quotation_LAST_CHANGE,2),'YYYY-MM-DD') as LAST_CHANGE,

num(Dealer_LOCAL_DEALER_NUMBER,'#####') &':'&

Quotation_QUOTATION_NUMBER &':'&

Date#(Right(Quotation_LAST_CHANGE,4) &'-' &

right(left(Quotation_LAST_CHANGE,5),2) & '-' &

left(Quotation_LAST_CHANGE,2),'YYYY-MM-DD') as Key,

num(Dealer_LOCAL_DEALER_NUMBER,'#####') &':'&

Quotation_QUOTATION_NUMBER as KeyQN

FROM C:\QlikView\Data_files\SA3_FI.qvd (qvd)

;

DealerQUOTATION_NUMBERLAST_CHANGEKeyKeyQN
756014122009-10-237560:1412:2009-10-237581:152
756014122009-12-237560:1412:2009-12-237581:152
756113522010-02-057561:1352:2010-02-057581:152
75802122010-02-177580:212:2010-02-177581:152
75811522010-02-057581:152:2010-02-057581:152


Labels (1)
3 Replies
jagan
Partner - Champion III
Partner - Champion III

I tried with the following script, it works fine. I think this will help u in solving ur problem.

Regards,

Jagan.

jagan
Partner - Champion III
Partner - Champion III

Sorry,

I forgot to paste the script, pls ignore the last script.

Temp:
LOAD
A,
B,
Num(A,'####') & ':' & Num(B,'####') AS Concat;
LOAD * INLINE [
A, B
456, 422
1234, 4985
1232, 3438
1232, 3482
3422, 383
342, 342
];

Not applicable
Author

I found out what is wrong, but I don´t understand why.

If I put an extra ':' at the end of Key-field it works.

Here is the script

Key and Key3 and Key4 is right but not Key2 and KeyQN





Temp:

LOAD

A,

B,

C,

A & ':' & B & ':' & C as Key,

A & ':' & B as Key2,

Num(A,'#####') & ':' & B & ':' as Key3,

Num(A,'#####') & ':' & Num(B,'#####') & ':' as Key4,

Num(A,'#####') & ':' & Num(B,'#####') as KeyQN;

LOAD * INLINE [

;

LOAD * INLINE [

;

A, B, C

;

7560, 1412, 2009-10-23

;

7560, 1412, 2009-12-23

7561, 1352, 2010-02-05

7580, 212, 2010-02-17

7581, 152, 2010-02-05

];