Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Filter Expression with several conditions

$
0
0

Hello!

 

I'm trying to filter data to show the times from a specified start time to a specified end time when a tag ('TagA') changes from 0 to 1.  I have this part figured out with the compressed data function.  My problem is that I need to further filter these events for times when the value of at least one of 5 other tags ('TagB' through 'TagF') is > 0.  If I just filter for when any 4 of the 5 are > 0, it works - but when I add the fifth I get a '#VALUE!' error.

 

Here's my expression when 'TagA' is in cell B4:

 

PICompFilDat(B4,"start time","end time","('"&B4&"')=1 and prevval('"&B4&"')<1 and ('TagB'>0 or 'TagC'>0 or 'TagD'>0 or 'TagE'>0 or 'TagF'>0)",0, 10,"server","inside")

 

Is there a limitation on the number of arguments you can use in a filter expression or am I missing something else?  If there is a limit, is there any kind of workaround I could do to still get the timestamps I need?

 

Thank you for your help!


Viewing all articles
Browse latest Browse all 1120

Trending Articles