I use the following XPath script and get ""my:WhenIfDate" does not point to a valid location path of a field or group."
I am trying to calculate only found records in a query. When I don't try and filter the math goes off without a hitch.
sum(d:Sick_Trans/@UnitsReceived[d:Sick_Trans/@TransactionDate <
../../my:WhenIfDate])