rivet Posted March 18, 2010 Share 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. Link to comment Share on other sites More sharing options...
comment Posted March 18, 2010 Share 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 ) Link to comment Share on other sites More sharing options...
rivet Posted March 19, 2010 Author Share Posted March 19, 2010 as always, thanks again comment Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5175 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