Jump to content

How do I print a subtotal on each page?


Jake Abiva
 Share

This topic is 5606 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

This topic is 5606 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.