Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a sheet to be used for monitoring database automation, which contains a large number of records.
The sheet allows for drilling down by several different criteria to filter down the records, where users may identify certain irregularities.
Based on the filtered data I'd like to display a set of random distinct [JOB NO] values in a text box or table against the filtered records for the user to help investigate irregularities identified.
I can use maxstring/minstring to pull a couple of values but ideally i'd like a true random selection of 5ish values in the filtered data.
Any ideas?
Cheers
Thomas
If [JOB NO] is numeric, you could use min(field,rank) with some sort of sampling or randomizing of the rank parameter.
If it's string, you could use
FirstSortedValue([JOB NO], sort-weight, rank)
where sort-weight is some numeric field you can associate with JOBNO, perhaps generating a number in the script.
-Rob
Hello Thomas,
You can use Autonumber() function in load script to achieve this.
syntax: Autonumber([Job ID])
You could load a random sample from your data source. Check out the SAMPLE keyword in the online help:
If [JOB NO] is numeric, you could use min(field,rank) with some sort of sampling or randomizing of the rank parameter.
If it's string, you could use
FirstSortedValue([JOB NO], sort-weight, rank)
where sort-weight is some numeric field you can associate with JOBNO, perhaps generating a number in the script.
-Rob
Thanks all, doing this dynamically within the sheet isn't easy as I'd hoped!
Rob's response gives me a fit for purpose result.
Cheers