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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to make an join in these case

TT1T2T3V1V2V3
A2378
AB4456
ABC5523
ABCD6682
AX1953
AXY16454
AXYZ27523

Anybody pls help


I want these values into these format how to make that in qlikview

TV1V2V3
A2378
B4456
C5523
D6682
X1953
Y16454
Z27523
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Try this code:

set NullInterpret ='';

TT1:

LOAD * Inline

[T, T1,    T2,    T3,    V1,    V2,    V3

A,   ,       ,   ,    2,    3,    78,

A,    B,      ,      ,    4,    4,    56,

A,    B,    C,      ,    5,    5,    23,

A,    B,    C,    D,    6,    68,    2,

A,    X,     ,     ,     19,    5,    3,

A,    X,    Y,     ,     16,    4,    54,

A,    X,    Y,    Z,    27,    5,    23

];

TT2:

LOAD

    If(IsNull(T3), If(IsNull(T2), If(IsNull(T1), If(IsNull(T), 0, T), T1), T2), T3) as T,

    V1,

    V2,

    V3

Resident

    TT1;

DROP Table TT1;   

Regards,

Harshal Gawande

View solution in original post

3 Replies
Not applicable
Author

Hi ,

please use the below code

Tab:

LOAD * Inline

[

T, T1, T2, T3, V1, V2, V3

A,   ,  ,   , 2, 3, 78

A ,B, , ,4 , 4 ,56

A ,B, C, ,5, 5, 23

A, B ,C ,D ,6 ,68, 2

A ,X, , , 19, 5, 3

A ,X ,Y, ,16 ,4 ,54

A, X, Y, Z, 27, 5, 23

];

T1:

NoConcatenate

LOAD

if( Len(T3)=0 ,if( Len(T2)=0,if( len(T1)=0,if( len(T)=0,Null(),T  ),T1  ),T2 ), T3 ) as T

,V1, V2, V3

Resident Tab;

DROP Table Tab;

Regards

Yusuf

Not applicable
Author

Hi,

You can name the columns you want to read, and reorder them as you wish.

LOAD T, V1, V2, V3 ...

FROM ....

or if you have already loaded the file into a table:

TableXX:

NoCONCATENATE

LOAD T, V1, V2, V3

Resident YourTemptable

I do not see the point. Perhaps I do not understand what you want to do.

Fabrice

Anonymous
Not applicable
Author

Hi,

Try this code:

set NullInterpret ='';

TT1:

LOAD * Inline

[T, T1,    T2,    T3,    V1,    V2,    V3

A,   ,       ,   ,    2,    3,    78,

A,    B,      ,      ,    4,    4,    56,

A,    B,    C,      ,    5,    5,    23,

A,    B,    C,    D,    6,    68,    2,

A,    X,     ,     ,     19,    5,    3,

A,    X,    Y,     ,     16,    4,    54,

A,    X,    Y,    Z,    27,    5,    23

];

TT2:

LOAD

    If(IsNull(T3), If(IsNull(T2), If(IsNull(T1), If(IsNull(T), 0, T), T1), T2), T3) as T,

    V1,

    V2,

    V3

Resident

    TT1;

DROP Table TT1;   

Regards,

Harshal Gawande