Do you use PI DataLink? You can easily perform this type of analysis using the Calculated Data function. You'll want to use the function similarly to:

Let us know if this works well for your needs!

Hi John,

Thanks for your replay

I am not using PI datalink. I am using only AF explorer, Pi procesbook and PI SMT. My requirement is to show the count in PI processbook. Using any Pi AF analysis can I perform this calculation?

Hi, Roy

Although a temporary solution, if I assume the values are only consisted of '0's and '1's, this might also be worth a try :

EventCount('Tagname','*','*-1d') - Tagmean('Tagname','*','*-1d')*EventCount('Tagname','*','*-1d')

Hi Joon,

thanks you very much .This is working

Do you use PI DataLink? You can easily perform this type of analysis using the Calculated Data function. You'll want to use the function similarly to:

PropertyHeader 2Let us know if this works well for your needs!