You might need to rebuild your expression rather than pasting.
Another possibility is the context has changed. If you are using this now
within a repeating section then it will not see all rows of the data.
Often you need to do counts as you had it originially, in your form data, so
that it can see across all records. Otherwise you need to bind to the
repeating group rather than a particular field so that you can get across all
records.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> Hello all:
>
[quoted text clipped - 34 lines]
>
> Ed
Ed Thurber - 03 Mar 2008 16:13 GMT
Clay:
Thanks for the reply. An interesting solution that I had not thought of.
Please let me rephrase and let me know if I am understanding you.
Instead of placing the rules on the second element, place them on the group
that I am counting (my:Header)?
Ed
> You might need to rebuild your expression rather than pasting.
> Another possibility is the context has changed. If you are using this now
[quoted text clipped - 50 lines]
>>
>> Ed