Focal Point
[SOLVED] Query to Generate Randomized List of Records

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5627043286

May 13, 2016, 01:38 PM
Gavin B
[SOLVED] Query to Generate Randomized List of Records
Hi folks,
I created a report to pull a list of records from a user specified date for managers to use to perform staff audits on claim files. From that list of records, the user only wants to see a randomized subset.

Anyone have ideas on how best to accomplish randomization?

NOTE: I am a non-technical business analyst and only have access to InfoAssist, not any of the technical programming tools.

This message has been edited. Last edited by: Tamra,


WebFOCUS 8.10.5
Windows 10, HTML
May 14, 2016, 09:40 AM
StuBouyer
Probably the simplest way to do this is to add a COMPUTE - Data tab on Ribbon -> Summary(Compute) - with the following:

Field: RNDM (or anything else you like)
Format: 12.6
Expression: RDUNIF(RNDM)

Then select the new field and sort and optionally put a limit.

We use this to show a random 10 entries for audit purposes

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
May 16, 2016, 04:35 PM
Gavin B
Thanks for your example Steve. I learned that it is important to have plenty of decimal places to get a really broad result each time the query is run.

I appreciate your support!


WebFOCUS 8.10.5
Windows 10, HTML
May 17, 2016, 06:15 AM
Gavin B
Sorry Stu, I meant to thank YOU! Smiler


WebFOCUS 8.10.5
Windows 10, HTML