Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
gidon500
Creator II
Creator II

Load one value

hi guys

I have a data that I need to load one value OF A  , no matter which line

A   B   C

1   3   5

2   6   7

1   5   9

2   9  5

I need the result to be

A  B  C

1  3  5

2  6  7

thanks

gidon

1 Solution

Accepted Solutions
Kushal_Chawda

Data:

LOAD *,RecNo() as Rec Inline [

A ,  B,   C

1,   3,   5

2,   6,   7

1,   5 ,  9

2,   9 , 5 ];

Inner Join

LOAD A,

min(Rec) as Rec

Resident Data

Group by A;

View solution in original post

3 Replies
Kushal_Chawda

Data:

LOAD *,RecNo() as Rec Inline [

A ,  B,   C

1,   3,   5

2,   6,   7

1,   5 ,  9

2,   9 , 5 ];

Inner Join

LOAD A,

min(Rec) as Rec

Resident Data

Group by A;

petter
Partner - Champion III
Partner - Champion III

Data:

LOAD

     A,

     FirstValue(B) AS B,

     FirstValue(C) AS C,

     RecNo() AS Rec

INLINE [

A, B, C

1 , 3, 5

2 , 6, 7

1 , 5 , 9

2,  9 , 5

]

GROUP BY

    A;

gidon500
Creator II
Creator II
Author

hi

thanks it works

gidon