Add AverageUtil and using it for energy rate computing in assembly tables

Fix #1706