Jake Abiva Posted July 26, 2006 Posted July 26, 2006 I have 46 records in my database. On my report sheet, I can only display 15 records at a time. I want to have a sub total for each page of the 15 records. How do I do that?
Mikhail Edoshin Posted July 27, 2006 Posted July 27, 2006 Hmm. You can sort and summarize by a field equal to Div( Get( RecordNumber ) - 1, 15 ), but then you must sort by this field only. A better way is probably that: make an unstored calculated number Previous Records with 15 repetitions: Let( [ record number = Get( RecordNumber ); relative record number = Mod( record number - 1; 15 ); repetition = Get( CalculationRepetitionNumber ) ]; If( repetition > relative record number + 1; 0; GetNthRecord( Extend( Value ); record number - ( repetition - 1 ) ) ) ) Add yet another calculation Sum to sum these values: Sum( Previous Values ) Place the calculation in the footer and you're done. It handles the last incomplete page too.
Recommended Posts
This topic is 7061 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