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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikconsultant
Creator III
Creator III

Access the first 10 lines of an table

I have to change an attribut in the first 10 lines of an table.

I looking for the right comand but i didn't found anything in the help or the handbook.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

HI,

If you are looking in script level then use RowNo(), it gives the current row no, based on that you can implement your logic.

Ex:

LOAD

*,

If(RowNo() <= 0, Logic1, Logic2) AS TempValue

FROM DataSource;

Regards,

Jagan.

View solution in original post

5 Replies
khadeer
Specialist
Specialist

first 10

load *

from tablename;

qlikconsultant
Creator III
Creator III
Author

Interesting solution but I need more a solution which I can use with "if".

Like:

If (line>10, number=5, number) as number

khadeer
Specialist
Specialist

ur question is not clear can u clarify what do u want.

jagan
Partner - Champion III
Partner - Champion III

HI,

If you are looking in script level then use RowNo(), it gives the current row no, based on that you can implement your logic.

Ex:

LOAD

*,

If(RowNo() <= 0, Logic1, Logic2) AS TempValue

FROM DataSource;

Regards,

Jagan.

qlikconsultant
Creator III
Creator III
Author

Thanks Jagan, that is what I wanted.