sum only positive value

Hi, I have this problem, I have one feed for energy use and one feed for solar energy product, so I have a log to feed with this operation (energy use - energy product, example 100 energy use - 50 energy product =   50) it is a value positive that I take from my energy distributor, but if I have 50 energy use - 100 energy product = -50 (this is a negative value)

Now for have a totalize use energy from energy distributor I cannot use 50 + -50 = 0, but I need to totalize only positive value , so in this case the correct value is +50 from energy distributor.

it's possible?

thanks

  

ngbod's picture

Re: sum only positive value

Have a look at the attached screenshot which might help.

360back's picture

Re: sum only positive value

thanks, now work correctly

http://casaml.dyndns.biz/emoncms/raspi

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.