I am using Survey123 to allow field technicians to record data on 1000+ test points. The project is divided into survey areas. I have developed a report template that summarizes the work done each day, including a count of the excavated tests and a list of their IDs. I'd like to be able to separate that summary by survey area. I've figured out how to get the count for each survey area, but I can't figure out how to filter the list of tests.
Here is what I have so far:
${#Section_7_STP_Log | where: “1=1 and dug=’yes’” | stats:”count,stp_num,areacount”:”projarea”}${areacount} STPs excavated in Area ${projarea} including: ${#Section_7_STP_Log | where:”1=1 and dug=’yes’” | orderByFields:”projarea”}${stp_label}, ${/}
${/}
And here is what it returns:
6 STPs excavated in Area A including: A052, A053, A054, A055, B052, B053, B002, B003, B004, B005, B006, B007, B008,
7 STPs excavated in Area B including: A052, A053, A054, A055, B052, B053, B002, B003, B004, B005, B006, B007, B008,
I'd like for it to just list the 6 STPs in Area A ("A052, A053, A054, A055, B052, B053"), and then the 7 STPs in Area B ("B002, B003, B004, B005, B006, B007, B008"), but I can't figure out how to apply the "projarea" variable from the groupByFieldsForStatistics parameter in the first query to the query for the list.