Hi @ORSO2001 thanks for your reply, I start trying this way, sampling a DTI file.
I'm designing a smarthome application, reading en storing Active power from a Power sensor and the solar panel energy, steering the loading of the electical car, boiler, heating system, ...
And to calculate finally the electrical capacity of the power consumption (in Belgium a high elektrical capacity will be charged, I have to pay aboout 160 euro extra yearly and this shall increase the comming years.
To make the historical Active power visible, I tought to visualize the stored DTI's in daily, weekly, monthly and yearly graphs to see the electrical savings resulting from the smarthome functions.