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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

first and last record of table

ID SOUR DES

111 BOM DEL
111 DEL DBR
111 DBR LHR
222 BOM LUK
222 LUK PAK
222 PAK WC



We want result

id sour des
111 BOM LHR
222 BOM WC

how can we pick first and last record of column plz help me urgent basic

Regards

Ashish

2 Replies
Not applicable
Author

Hi Ashish

Based on data and information provided.

Please see attached qvw.

I think you need to be more specific how you detemine 1st record and last record for each ID.

boorgura
Specialist
Specialist

You can do that in the script:

you can use

FIRST <n> (in your case FIRST 1)

LOAD ....

FROM ...

and for the last you can do a FIRST 1 load again...

But before that in the load wizard you will have to Rotate the data left/right twice, so that the data goes up-side-down.