StatFunctions: Difference between revisions
From LimeSurvey Manual
DenisChenu (talk | contribs) No edit summary |
DenisChenu (talk | contribs) ({{FeatureStarting|4.1.0}}) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{FeatureStarting|4.1.0}} | |||
Functions for expression manager to count some statistics data : | |||
* statCount(QuestionCode.sgqa[, submitted = true]) : count the answered question of QuestionCode already submitted. You can count the submitted survey with statCount('sid') for example. | * statCount(QuestionCode.sgqa[, submitted = true]) : count the answered question of QuestionCode already submitted. You can count the submitted survey with statCount('sid') for example. | ||
Line 5: | Line 7: | ||
You can find an usage of this 2 functions in [https://github.com/LimeSurvey/LimeSurvey/blob/master/tests/data/surveys/survey_archive_statCountFunctionsTest.lsa survey_archive_statCountFunctionsTest] inside test directory. | You can find an usage of this 2 functions in [https://github.com/LimeSurvey/LimeSurvey/blob/master/tests/data/surveys/survey_archive_statCountFunctionsTest.lsa survey_archive_statCountFunctionsTest] inside test directory. | ||
[[File:StatFunctionsSample.png]] | |||
[[Category:Plugins]][[Category:Core Plugins]] | [[Category:Plugins]][[Category:Core Plugins]] |
Revision as of 17:29, 23 April 2020
Hint: This features is available starting in version 4.1.0
Functions for expression manager to count some statistics data :
- statCount(QuestionCode.sgqa[, submitted = true]) : count the answered question of QuestionCode already submitted. You can count the submitted survey with statCount('sid') for example.
- statCountIf(QuestionCode.sgqa, value[, submitted = true]) : count the response where answer to question QuestionCode are value.
You can find an usage of this 2 functions in survey_archive_statCountFunctionsTest inside test directory.