Using Integers in Grafana for Energy Consumption

I found out about Integral function. That seems to be very powerful and suitable to my needs. However at this moment it seems to be extremely complicated, so I need to read into that. Maybe someone in this forum already successfully implemented an integral in influxdb/grafana. If so, I would be very delighted to see his/her solution.