Just created one https://github.com/influxdata/influxdb/issues/7006
I am wondering if anyone has solved this problem using some other way? Best Himanshu On Mon, Jul 11, 2016 at 2:31 PM, Sean Beckett <[email protected]> wrote: > I don't think there's a way to do that in the current query language. It > would really be something like: > > select difference("value") / value from measurement where "tag"='tag_value' > > DIFFERENCE calculates the difference between successive field values, but > there's no way to also reference the current field value in the same query. > That's mixing aggregation functions with raw points, which is not allowed. > > I encourage you to open a feature request > <https://github.com/influxdata/influxdb/issues/new>, as I don't see an > open issue that appears to fit this use case. > > On Mon, Jul 11, 2016 at 1:01 PM, <[email protected]> wrote: > >> I am trying to plot the % change on a measurement. My query in grafana >> looks like this currently. >> >> select difference("value") from measurement where "tag"='tag_value' >> >> Is it possible to modify above query to get % change? It'd be helpful to >> get this in query syntax >> >> Best >> Himanshu >> >> -- >> Remember to include the InfluxDB version number with all issue reports >> --- >> You received this message because you are subscribed to the Google Groups >> "InfluxDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/influxdb. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/influxdb/3a1e92d0-1992-45ca-8287-0dad59302eb9%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Sean Beckett > Director of Support and Professional Services > InfluxDB > > -- > Remember to include the InfluxDB version number with all issue reports > --- > You received this message because you are subscribed to a topic in the > Google Groups "InfluxDB" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/influxdb/kSDhxHUsLWI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit > https://groups.google.com/d/msgid/influxdb/CALGqCvMrP-0Lr8stL4m2%2B%2BapyVTTKJWMcUtD2jzE61DZhx%2Biyg%40mail.gmail.com > <https://groups.google.com/d/msgid/influxdb/CALGqCvMrP-0Lr8stL4m2%2B%2BapyVTTKJWMcUtD2jzE61DZhx%2Biyg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CAHJFEgVmJ-Ly5SA1T-%2BnL0kp2cuGUyY%3DBWbe%3Dske%3Demh8xN6TA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
