Multiple Grafana datasources data transformation

It can be changed.

so how are you using this variable in your final query?

select cast(Latitude as decimal(10, 6)) as Latitude, cast(Longitude as decimal(10, 6)) as Longitude, ClientId from [DB].[Coordinates] where (ClientId) IN (${ActiveCompanyIds})

This is the final query. There are some things to consider:

If the string contains only one value - it should be escaped with single quotes.