Analysis With Data in Bucket

Analysis With Data in Bucket

Hello, I would like to know if it is possible to create an analysis script with all the data that is in a bucket of a device, for example, I have current values and I want to calculate energy consumption, inserting voltage and power factor data. power as constants.