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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One lamppost from each street

Status
Not open for further replies.

djieon

Technical User
Aug 19, 2008
107
GB
Hi all,

I have a report that has the following:-

Group header 1 - @random (based on the random formula)

Group header 2 - Street name

Details - Lamppost

what I want to achieve is 40 random lamp posts but only 1 lamppost from each street, however currently I am getting 40 random lampposts but I am getting more than 1 in a street.

Am I doing this wrong?

Thanks in advance.

David.
 
I think you may have your groups in the wrong order. Group by street, then select a random lamppost on that street. You may neet a second formula to select random streets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top