Chart based on SQL statement don't show results (or any error)
Confluence User - 13 Aug, 2021
I am using this Statement for creating a line graph, but graph has no value:
SET @runningTotal = 0;
SELECT
Date,
@runningTotal := @runningTotal + totals.Outcome AS runningTotal
FROM
(Select CONCAT(MONTH(c_CDate),' ',YEAR(c_CDate))as Date,
sum(c_OutCome) as 'Outcome'
from app_fd_trades1
where c_CDate>0
GROUP BY YEAR(c_CDate), MONTH(c_CDate)) Totals
Here is the results of the query in default database:
Any idea on how to fix this?
chart;sql
