Macro $__timeGroup does not work - ERROR: query error: pq: unbalanced (

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?
    Group my rows by date (day)

  • How are you trying to achieve it?
    Using $__timeGroup(timestamp, ‘1d’),

  • What happened?
    For a simple “test query” i get the error ---- db query error: pq: unbalanced (

  • What did you expect to happen?
    get columns grouped by time

I dont get it why it doesn’t work. I practically used the query suggested in the help and it still does not work. I need this to make work my BAR CHART panel.


Can pls someone help me with this. I tried everything and i cant seem to find the solution for this.