Using data from Transform in scripts

Hello all!

I am trying to make Sankey graph in Grafana, using Plotly panel. In the Script section of Plotly panel I refer to all my queries by using:
let licznik_1 = data.series[0].fields[1].values.buffer
let licznik_2 = data.series[0].fields[2].values.buffer
But I do not know how to refer to data from Transforms, field from calculation to be more specific. Is it possible?

Best regards

Hi @radziq8
What comes to my mind is to switch SQL view and perform some math operations there.