Hello,
Thank you for this suggestion. I have attempted to use the following query with the dbr.summary.text but it is throwing an error. Query:
SELECT 'dbr.summary.text','columnname', CONCAT('=SUM(INDIRECT(ADDRESS(ROW() - ', @rowcount, ',COLUMN())):INDIRECT(ADDRESS(ROW() - 1,COLUMN())))');
The above results in the error:
Warning: trim() expects parameter 1 to be string, array given in /var/www/html/reporting/mydbr/lib/external/phpExcel/PHPExcel/Calculation.php on line 3039 Warning: trim() expects parameter 1 to be string, array given in /var/www/html/reporting/mydbr/lib/external/phpExcel/PHPExcel/Calculation.php on line 3048 Fatal error: Uncaught exception 'Exception' with message 'Workbook Name!B22 -> Workbook Name!B22 -> Cyclic Reference in Formula' in /var/www/html/reporting/mydbr/lib/external/phpExcel/PHPExcel/Cell.php:288 Stack trace: #0 /var/www/html/reporting/mydbr/lib/export.php(295): PHPExcel_Cell->getCalculatedValue() #1 /var/www/html/reporting/mydbr/lib/export.php(883): mydbrExport->append_cell() #2 /var/www/html/reporting/mydbr/lib/export.php(1393): mydbrExport->print_summary_row() #3 /var/www/html/reporting/mydbr/lib/export.php(2547): mydbrExport->print_rows() #4 /var/www/html/reporting/mydbr/apps/showReport.php(6531): mydbrExport->print_report() #5 /var/www/html/reporting/mydbr/report.php(391): unknown() #6 {main} thrown in /var/www/html/reporting/mydbr/lib/external/phpExcel/PHPExcel/Cell.php on line 288
I have tried the formula directly in excel and it appears to work without any issues. Let me know if you have any ideas as to how we can work around this.
Edit: I do realize that the formula I'm trying to get into the footer is exactly the same as doing a sum command through myDBR, however, the end-user has specifically requested a formula to "see" the logic being handled independently of myDBR's logic.