thead Posted August 31, 2022 Report Share Posted August 31, 2022 Hello, I have a Report DataPage where in I need to get the total payment line by line. Please see below data for the sample output: Is this possible to achieve? Quote Link to comment Share on other sites More sharing options...
0 April Posted August 31, 2022 Report Share Posted August 31, 2022 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. Quote Link to comment Share on other sites More sharing options...
0 autonumber Posted September 8, 2022 Report Share Posted September 8, 2022 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/ Quote Link to comment Share on other sites More sharing options...
0 Flowers4Algernon Posted April 28 Report Share Posted April 28 Hello you may also refer to this link as this will be helpful in creating formulas/calculations: https://howto.caspio.com/function-reference/ Quote Link to comment Share on other sites More sharing options...
0 Queso Posted May 30 Report Share Posted May 30 Hi @thead, in case you don't know how April's solution works, you can visit the following website for definitions of SQL statements and functions: https://www.w3schools.com/sql/sql_select.asp Quote Link to comment Share on other sites More sharing options...
Question
thead
Hello,
I have a Report DataPage where in I need to get the total payment line by line. Please see below data for the sample output:
Is this possible to achieve?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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.