Code: Select all
SELECT *, ABS(SUM (AMOUNT)) AS ABSTOTAL,
SUM (AMOUNT) AS TOTAL,
(cast(strftime('%d', date) as integer)) AS DAY,
(cast(strftime('%d', date) as integer)) / 7 + 1 AS WEEK,
(cast(strftime('%m', date) as integer)) AS MONTH,
(cast(strftime('%m', date) as integer) + 2) / 3 as QTR,
(cast(strftime('%Y', date) as integer)) AS YEAR
FROM TRANSACTIONS
INNER JOIN CATEGORIES
ON TRANSACTIONS.TREE_NAME=CATEGORIES.CatName
GROUP BY TREE_NAME
The 3rd series would use either total because it looks like the pie charts already use ABS amounts when they are built.
But I can figure out how to design it where the bar chart is above, and the pie chart is below. Also how to create the pie chart, so it is flat as it looks in the attachment.
Any help would be appreciated because this is my first project that I am using the Standard FMX TChart component.
Thanks.