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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhas277
Creator
Creator

loading records

Hi Experts,

I have 1 table in that 100 records are there  now my req is load 20 to 30 records ,50 to 60,70 to 80 how i can get it?

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe like this:

LOAD * WHERE match(left(RecNo,1),'2','5','7')

LOAD *, RecNo() as RecNo;

SQL SELECT * FROM source_table;


talk is cheap, supply exceeds demand
Anonymous
Not applicable

May be  like this

Rec:

load RecNo() As Rec

, Record ;

LOAD * INLINE [

    Record

    10

    20

    30

    40

    50

    60

    70

    80

    90

    100

]

Where RecNo()> 4 and RecNo() <7 or RecNo() >1 and RecNo()<3;

prabhas277
Creator
Creator
Author

is it possible by using exists function?

padmanabhan_ram
Creator II
Creator II

Hi Prabhas,

you can do it in many ways.

one of the way is introduce recno() in the load table and in the resident load use a where condition with the

(recno() >=20 and recno()<=30)  and

(recno() >=50 and recno()<=60) and

(recno() >=70 and recno()<=80);

else you can use the values that are to be loaded in an inline table ans use that in the where exists().

hope this helps.

thanks,

Padmanabhan

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LOAD

*

FROM DataSource

WHERE (RecNo() >=20 AND RecNo() <=30)  OR (RecNo() >=50 AND RecNo() <=60)  OR (RecNo() >=70 AND RecNo() <=80) ;


It is not possible with Exists, if you want to use Exists() then you have load this numbers in another and need to use that column in Exists.


Regards,

Jagan.

qlikviewwizard
Master II
Master II

Hi,

Please try like this:

Hope this will help you.

Script:

Capture1.PNG

OUTPut:

Capture.PNG