Actions

Difference between revisions of "StatFunctions"

From LimeSurvey Manual

(Created page with "New function for expression manager to count some statistics data : * statCount(QuestionCode.sgqa[, submitted = true]) : count the answered question of QuestionCode already s...")
 
Line 5: Line 5:
  
 
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.
 +
 +
[[Category:Plugins]][[Category:Core Plugins]]

Revision as of 17:35, 19 February 2020

New function 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.