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: 
Not applicable

choose a rendom rows but less then expected

Hi ,

I attached the example I have , using with this calculation :

='('&Concat(ceil(RAND()*$(vRowNum)),'|', ValueLoop(1,$(X)))&')'

if X = 10 then it will show me on the table the random 10 rows.

the problem is that there are collisions in value generation, sometimes it choose me only 9 rows.

how do I make sure he will choose me exactly 10 random row not more or less, and on each choose the rows data will be different.

thanks,

Moni

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Qlikview doesn't have a function for that. Perhaps you can use a site like random.org. The url below will return a comma separated series of 10 random non-repeating numbers between 1 and 100

https://www.random.org/integer-sets/?sets=1&num=10&min=1&max=100&seqnos=on&commas=on&sort=on&order=i...


talk is cheap, supply exceeds demand