Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sibideepak
Creator II
Creator II

Filter field based on another field in load

Hi all,

I want to filter one field based on another field..ex:

Load * inline [

Field1,Field2

A,1

B,1

C,1

D,1

E,2

F,2

G,3

H,3

];

This is just example ..I have huge data set .. What I want to filter is for each Field2 I need First 3 or more Field1 values.

3 Replies
Not applicable

Hi Deepak,

not sure I follow what you are after, by selecting '1' in Field 2 in your example, you will naturally filter to the possible values of Field1 ABC.

So in the load a where clause on field 2 of that value would limit the data to just those 3 values.

Can you explain in more detail what you are looking to do

thanks

Joe

sibideepak
Creator II
Creator II
Author

Hi ,

Thanks for response ,

For Each Distinct Field2 I need first 100 records in Field1.

arulsettu
Master III
Master III

hi try this

          first 100 load distinct Field2 ,

                                        Field1

                    from....