surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.12k stars 802 forks source link

Add condition as an optional third parameter to functions as: sumInArray, minInArray... #8257

Closed andrewtelnov closed 4 months ago

andrewtelnov commented 4 months ago

We need to summarize based on condition. sumInArray({matrixName}, 'column1') should sum column1 value for all rows sumInArray({matrixName}, 'column1', '{column2}' > 3) should sum column1 value for rows if 'column2' is greater than 3.

The related private issue in SurveyJS Support forum