rivet Posted March 18, 2010 Posted March 18, 2010 I would like a replace calculation to divide a found set of records into user determined batches. Here is my calc Int ( Get ( RecordNumber ) / $div ) +1 This works great except the first group is always 1 short.
comment Posted March 18, 2010 Posted March 18, 2010 That's because RecordNumber starts with 1, not 0. Try: Div ( Get (RecordNumber) - 1 ; $div ) + 1 or: Ceiling ( Get (RecordNumber) / $div )
Recommended Posts
This topic is 5361 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now