Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Data Selection

Status
Not open for further replies.

sjc1956

Technical User
Jan 14, 2004
19
Is there a way to do a random data selection? I want to run data from a certain month but want it do search randomly for, let's say, 10 records.
 
The above referenced thread works fine if you have no grouping. I am trying to group by user id and then show a random selection of N records for each group. On the suppression formula no records will print after the first N for the first group. Example:

ID 1
Detail - 15 records here
ID 2
ID 3
ID 4

Any suggestions?
Thanks - RF
 
Nevermind Answered my own question. Instead of RecordNumber > (?Show_N_Records) use a running count of records that get rest upon group change.

Ex: {#RecCount} > {?Show_N_Records}
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top