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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

LOAD

Hi all,

from a table with the following structure i need to extract only one record per value of a certain field.

Table:

ABC
Value1ABCTest1
Value1DEFTest1
Value1GHITest1
Value1JKLTest2
Value1MNOTest2
Value2KLLTest1
Value2PPQTest1
Value2JJNTest2
Value2BBSTest2

What i want: For each value in A and C i want to extract ONE record (no matter which record). The result could look something like this:

ABC
Value1ABCTest1
Value1JKLTest2
Value2PPQTest1
Value2BBSTest2

Hope, my problem is clear & thanks a lot for some advise.

regards.K

3 Replies
Anonymous
Not applicable
Author

Something like this:

LOAD

     A,

     minstring(B) as B,

     C

FROM

DATASOURCE

group by A, C;

?

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

LOAD

     A,

     C,

     Max(B) AS B

FROM DataSource

GROUP BY A, C;

Regards,

Jagan.

Not applicable
Author

it ll work fine.

bu.JPG