So the catalog item has a calculated field to grab the values for all the child donations items; this code works and pulls in the total value of the catalog item:
Code: Select all
SELECT CONCAT('$', FORMAT(COALESCE(SUM(`Donations`.`Value`), 0.0), 2)) AS `DonationTotal`
FROM `Catalog`
LEFT JOIN `Donations` ON `Donations`.`CatalogID`=`Catalog`.`ID`
WHERE `Catalog`.`ID`=%ID%
I searched and found this article - https://bigprof.com/appgini/help/advanc ... culations/ but it doesn't really explain how exactly I would use this.
I appreciate any assistance.