Newby question, influxdb measurements and table display in Grafana


I am using InfluxDB which is a source of data for my Grafana (v8). I am sending the following to InfluxDB:

durationTime,sample=${} duration=${item.averageTime}

Now I would like to have a nice table in Grafana that will display the name of the sample and duration.

In final table I want to have two columns: sample and duration. When I try grouping by tag “sample” the table only allows me to see one at a time and I don’t see the name.

I am new to Grafana and I do not fully grasp how Grafana “see” data from InfluxDB. Is this just a matter of query or should I also change the way the data is stored in InfluxDB to achieve my goal?