Either cost zero or energy zero

Ok I got one of the issues solved (no energy displayed for Riemann sum integral entities) by following the solution in this post:

The remaining problem is that there are no costs shown for my powercalc entities. Anyone with an idea?