I've encountered an issue since upgrading to NPM 12 where charts based on a SQL query have been broken.
Here's the query (specifics redacted):
SELECT a.[FACILITY]
, SUM(a.[metric]) AS Actions
, a.[endtime]
FROM [database].[dbo].[table] a
WHERE a.[endtime] BETWEEN DATEADD(dd,-30,GETDATE()) AND GETDATE()
AND a.[FACILITY] in ('FAC1','FAC2','FAC3')
GROUP BY a.[FACILITY]
, a.[endtime]
ORDER BY a.[endtime]
, a.[FACILITY];
It used to show up fine as a stacked area chart, but now it just says "Data is not available".
I have Actions as my data series, endtime as my time column, FACILITY on "Group chart data by:", and Actions on "Legend shows:"
Sample interval is every hour. I've tinkered with switching around different settings, but I can't seem to fix the issue.
Thanks for any help.