Table with multi-index

Hi everybody, this is my first post so I hope I did everything right.

I have three SQL Server tables built like this:

  • SAMPLES (id, sample_number, sample_date, description)
  • PARAMETERS (id, parameter_name, measure_unit)
  • RESULTS (id, sample_id FK, parameter_id FK, value)

I need to show a table in Grafana obtained by a join on this three tables and group them by description first and then by date. I have it in Excel and I need to obtain the same on Grafana. The Excel looks like this:


How can I obtain that?
Thank you