Hi
Above condition wont work because we can’t perform operations like add or sub in X path with attribute
Create a variable like below and use new variable in the xpath as shown below
See documentation here: https://docs.mendix.com/refguide/xpath-keywords-and-system-variables
Use something like [TestDate >= '[%CurrentDateTime%] - 1 [%yearlength%}'] in your Xpath.
Regards,
Ronald