Accessing age variable from another section

Kindly help resolve this–>accessing age variable directly from another section raises this error message:
“D0001_age does not exist in current context”, we tried to this syntax for accessing it demographics.Any(x=> x.D10004_age>=18) and seems to work partly i.e. when one of the members meet the criteria list all including those that does not meet the criteria.

Could it be just a typo?

You mention that the expression using D10004_age is compiled elsewhere, yet the error message refers to a variable with a different name: D0001_age.

If this is not a simple typo, please provide more details:

  • What is the actual variable name?
  • What is the actual expression that doesn’t compile?
  • What is your actual questionnaire structure?

Best, Sergiy