Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
SevillaFe
Contributor
Contributor

pseudo-random number between 0 and 100,000 based on product_ID

Hello everyone, I hope you can help me with the conversion to Qlik Language of this expression:

RND_ID = INTEGER(((FLOAT(ABS(Product_ID))/SQRT(FLOAT(ABS(Product_ID))))-INTEGER(FLOAT(ABS(Product_ID))/SQRT(FLOAT(ABS(Product_ID)))))*100000)

What I'm trying to do is create a list of Products numbers and assign each Product an equally distributed pseudo-random number between 0 and 100,000 based on the Product-ID

Product_ID = AA45YYY7H00001

I hope I´ve explained myself well

Thnak you

0 Replies