Line Graph for Non-Aggregates #1492
-
Hi there, I am trying to create a graph in a dashboard that plots on or more values as they change over time. I have a handful of events logged and am trying to use a query similar to:
However, I when trying to use a line graph I get an error stating 'MarketPrice' is not an aggregate. I would like to plot the actual value, not an aggregate. Is that possible? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is not possible to plot the actual values with a grouping. You can do what you want on the events page: select @Timestamp, MarketPrice
from stream
where MarketPrice > 0 Then click the 'View as timeseries' button. Dashboards are always aggregated by time, so you have to supply an aggregate function. select min(MarketPrice), mean(MarketPrice), max(MarketPrice)
from stream
where MarketPrice > 0
group by time(1m) Hope that helps. |
Beta Was this translation helpful? Give feedback.
It is not possible to plot the actual values with a grouping.
You can do what you want on the events page:
Then click the 'View as timeseries' button.
Dashboards are always aggregated by time, so you have to supply an aggregate function.
mean(MarketPrice)
might be useful, or you can plot multiple values on a chart e.g.min(MarketPrice), mean(MarketPrice), max(MarketPrice)
.Hope that helps.