QuickBaseCoachD
7 years agoQrew Captain
Create a Random sort based on the Record ID#
I have a table which will have 40,000 records loaded and flushed out each day. So it will have a high number with 6 or 7 digits for the [Record ID#] in a few days once we go live.
Is there an easy formula to create a field to use as a Random sort, except that I do not want that sort to change during the day, so not random based on anything like now(), but random just based on the Record ID#.
Tomorrow will be a new day, a new set of 40,000 records and a new random sort.
I figure it would have something to do with using the mod() function. The Record IDs are likely to be created in time of day sequence and I want to be able to do sampling of the first X records on the report to audit, but want to ensure they were spread out all though the day so it can't be a sampling based on the lowest Record ID#'s.
Would it just something like mod([Record ID#], "and a big prime number here").
My sample size is in the ball park of 600 records to be audited per day, so I need 600 of the 40,000 randomly at the top of the report.
Is there an easy formula to create a field to use as a Random sort, except that I do not want that sort to change during the day, so not random based on anything like now(), but random just based on the Record ID#.
Tomorrow will be a new day, a new set of 40,000 records and a new random sort.
I figure it would have something to do with using the mod() function. The Record IDs are likely to be created in time of day sequence and I want to be able to do sampling of the first X records on the report to audit, but want to ensure they were spread out all though the day so it can't be a sampling based on the lowest Record ID#'s.
Would it just something like mod([Record ID#], "and a big prime number here").
My sample size is in the ball park of 600 records to be audited per day, so I need 600 of the 40,000 randomly at the top of the report.