I have the results of my Transformation on my Openhab thats good. But If I want the same Item value sent to Grafana via InfluxDB (outside from Openhab) it gives me the raw value of the item! which means JSONPATH($.ANALOG.A0) and not the results of “Voltage [JS(VoltageCorr.js):%.1f]”
Well, you started off by needing to extract the part you were interested in from the MQTT payload using JSONPATH.
When you do not use JSONPATH, you do not get the part you are interested in.
So there is no part for your javascript to process.
I suggested that you write a new javascript, and that you make that javascript handle both getting the JSON part that you want from the MQTT payload, and do whatever maths that your existing javascript does.
You cannot use two separate transformations because you have chosen to use MQTT binding version 1, which allows only one transformation.
But you can script your one transformation to do both tasks, JSON and maths.