Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to remove garbage rows in this scenario?

Capture.PNG.png

Here we can see name of the cities are repeating...For my scenario the name of the city arising for the first time is valid otherwise consider it as garbage value.Like 'Chak Forty M' is again repeating in 2nd and 3rd row, so here I want only 1st row to be loaded and 2nd & 3rd should avoided or deleted...How to achieve the same???

Thanks in Advance

Regards

Himanshu Kumar

11 Replies
MarcoWedel

you're right, FirstValue solves your problem:

tabCities:

LOAD City1,

    FirstValue(Latitude) as Latitude,

    FirstValue(Longitude) as Longitude

FROM [http://community.qlik.com/servlet/JiveServlet/download/516020-103612/Testinng.xls]

(biff, embedded labels, table is Sheet1$)

Group By City1;

QlikCommunity_Thread_115600_Pic1.JPG.jpg

Did I understand correct, that you found the solution on your own and do not have any other issues, or are there any questions left?

regards

Marco

disqr_rm
Partner - Specialist III
Partner - Specialist III

LOAD City, Latitude, Longitude FROM\Whatever.xlx.. WHERE Not Exists (City);