Min Value in Group By not working

Hi,
i want to select the min-value of a field (transformation) and show it in a table view but it’s not working. It looks like Grafana always takes the last value instead of min. See the screenshot (i filtered out other lines)

I am doing an extract fields, filter names and a group by with the min calculation.

The loki query looks like this

{app="API", customer="$customer"} | logfmt | leadId=`13621`

I missed the quotation marks, so Grafana handles the values as strings :laughing:

Solution: Add a convert field type transformation

image