I'm having a problem with an expression in my Survey123 report template. If I take an expression without a where clause, it works fine, but if I add a where clause, the syntax checker returns "Invalid expression". Is there something with the expression, or is this a known limitation? Thanks!
// Invalid expression
${(MySurvey | where: “actual_waterbody = ‘Maple River’”| stats: “sum, tot_obs”) – (MySurvey | where: “actual_waterbody = ‘Maple River’” | stats: “sum, tot_a_obs”)}
//Valid expression
${(MySurvey | stats: “sum, tot_obs”) – (MySurvey stats: “sum, tot_a_obs”)}