Influx DB : Flux grouping problem

Stuck on this problem. I am trying to group my data based on my tag .
My Flux query is as follows :-
from(bucket: “”)
|> range(start: -2d)
|> filter(fn: (r)=>r._measurement==“agrovet-sensors”)
|> group(columns:[“”])

I get an error message as follows:
schema collision: cannot group float and integer types together.
Stuck at this point and need help. Thanks in advance

Hello @Diptarko,
Can you please try converting your float to int or int to float first?
You can use any of the following:
Great if you need to convert a column other than _value:


    |> map(fn: (r) => ({r with exampleCol: float(v: r.exampleCol)}))

These for converting _value column


import "sampledata"
    |> toFloat()

Hope that helps!