Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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
Luminary Alumni
Luminary Alumni

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
Luminary Alumni
Luminary Alumni

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.