This field is required.
Only these extensions are allowed(.jpg, .JPG, .jpeg, .JPEG, .gif, .GIF, .png, .PNG)
Tags cannot contain the characters ' /, \\, #, ?, or ; >,< '
Only these extensions are allowed(.zip,.ZIP,.pdf,.PDF,.qvf,.QVF,.qvw,.QVW)
Discussion Board for collaboration related to QlikView App Development.
Hi all ,
I want to generate some random values between 20 to 50 for each ID in my table.
S.No CustID Value
1 101 22
2 102 36
3 101 22
4 105 29
5 108 45
6 102 36
If is it possible .. how to do it ?
Thanks in advance
Try like this
Floor(Rand() * 30 + 20) AS Value
DROP TABLE Temp;
View solution in original post
Floor(Rand()*30) + 20 As Value;
LOAD * INLINE [
But again have a look at description and example where each CustID have same value all time ..dont change every time ..i.e) for 101 value should always be 22 and for 102 it is 36.
LOAD *, AutoNumber(CustID) + 20 As Value
Hope this helps you.
Sorry, missed that point with the CustID. Then you need to load a distinct CustID table and join like Jagan's second example.
Thanks for your answer !! Hope it'll work for my scenario