Pivot with InfluxDB data in Grafana

I’ve just started testing grafana and is really impressed.

I have a database in Influxdb containing message events containing reporting timestamp and eventtext.
Now I need to create a presentation in Grafana showing the count of each message with message as group. (Like a Excel pivot)

Is this possible?

Kind regards