I am trying to get the Solar Panel Current to a dashboard in Grafana.

I see from the Dbus documentation that the current measurement was depreciated

deprecated per v2.80: /Pv/I <- PV current (= /Yield/Power divided by /Pv/V) /Pv/x/I

So I take from this that the current will need to be calculated. I am not sure how to do this in Grafana and InfluxDb Query Language. I am just starting on this learning curve so I suspect I have missed one of the fundamentals.

Do I need to query each measurement independently store them in variables and then do the calculations on those? My gut tells me there is a simpler way.

Also, can I assume that both the /Yield/Power value and the /Pv/V value will have the same timestamps? i.e. if I use the last(power) /l ast(voltage) will I get necessarily get the last(current)

This is probably going to be simple for one (or most) of you but I am scratching my head.