Jump to content
  • 0

Line by line sum of the field.


thead

Question

4 answers to this question

Recommended Posts

  • 0

Hi Thead,

In order to achieve that output, you need to add a calculated field on your Report DataPage. After you have added the calculated field use the below formula to get the sum line by line.

SELECT SUM(Payment) FROM Table WHERE ID<=  target.[@field:ID] AND Name=target.[@field:Name]

Note: Please change ID and [@field:ID]  to your unique field on your table.

Hope this helps.

Link to comment
Share on other sites

  • 0

Hello - to know the list of functions that can be used within Caspio as well as sample calculations for reports, you check this article so you'll have a reference in case you will add or use more calculations in your application. 

https://howto.caspio.com/function-reference/

https://howto.caspio.com/tables-and-views/data-types/formula-fields/

https://howto.caspio.com/datapages/reports/advanced-reporting/calculations-in-forms-and-reports/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...