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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Create Random Negative and Positive Values

hi,

Need to create random values -15% to +25% of sales Column, Anyone knows how?

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

3 Replies
Anonymous
Not applicable

Please try the 'rand()' function. Below is an example from Qlik help.

rand( )

Example:

This example script creates a table of 1000 records with randomly selected upper case characters, that is, characters in the range 65 to 91 (65+26).

Load Chr( Floor(rand() * 26) + 65) as UCaseChar, RecNo() as ID Autogenerate 1000;

nagaiank
Specialist III
Specialist III

rand()*40-15

fkeuroglian
Partner - Master
Partner - Master

Hi, use the rand() function

Fernando K.