I have this query in influxDB that works fine, shows me all the three columns, but when I copy and paste to grafana, it only shows me the points column.
Also both in influx and grafana it generates me one table for each pilot, when they should actually be on the same table.
Any ideias how to fix that up?
I’m not 100% sure, but this sounds like Grafana is not displaying the columns in the group key. Depending on the visualization type you’re using, there may be a setting that changes this behavior.
In the Flux data model, each individual “group” is represented by a table. So by grouping your data by Pilot_name and Lap, you’re going to have an individual table for each unique combination of those tags. To group them into a single table, you can “ungroup” your data after you calculate the sum: