Hi,
Do you really want to count all surveys (completed or not)?
But im still not knowing how to calculate the % of completes of each option
How do you usually calculate percentages?
100*part/base
See these examples in the manual
- count number of submitted response : {statCount("id")}
- count number of responses (submitted or not) : {statCount("id", 0)}
- number of responses where respondent stopped at page 1 : {statCountIf("lastpage", 1, 0)}
- number of submitted responses with startlanguage "en" : {statCountIf("startlanguage", "en", 1)}
- number not completed responses to this survey : {sum(statCount("id", 0),statCount("id")*-1)}
- number of responses submitted in 2022 : {statCountIf("submitted", ">=2022-01-01")}
- number of submitted responses with Y at a YesNo question title {statCountIf(YesNo.sgqa, "Y")}
- number of responses (submitted or not) with Answer A1 at a Q01 question title {statCountIf(Q01.sgqa, "A1", 0)}
- Validate unicity on a short text question (not submitted) {statCountIf(self.sgqa, self.NAOK, 0, 1)} (only when move next page)
So you can do it like this:
Respuestas de ámbito A: {statCountIf(P1.sgqa, "A1", 0)} = {100* statCountIf(P1.sgqa, "A1", 0)/statCount("id", 0)}%
Respuestas de ámbito B: {statCountIf(P1.sgqa, "A2", 0)} = {100* statCountIf(P1.sgqa, "A2", 0)/statCount("id", 0)}%
Joffm