Is there a way to get the quality of the result of an Aggregate function?
I am trying to do something like this
if(IsQualityGood(DeltaBounds('[Energy.%Asset%.EnergyMeter]', '1h')),DeltaBounds('[Energy.%Asset%.EnergyMeter]', '1h'),if(IsQualityGood(Delta('[Energy.%Asset%.EnergyMeter]', '1h')),Delta('[Energy.%Asset%.EnergyMeter]', '1h'),Range2('[Energy.%Asset%.EnergyMeter]', '1h')))
but figured out that IsQualityGood takes tags and defaults to false here, is there a way that i can create a function does does what i intend here without having to create a tag for each of the functions withing the if?
5 replies
-
Hi ,
The IsQualityGood() function will return a True/False, depending on the quality of the result. If you just want to return the actual quality, you will want to use Quality(). It will return the decimal quality format (192 = Good, 64 = Uncertain, 0 = Bad, etc.)