Contact us

Calculate aggregate function

This activity finds list by url and calculates aggregate numerical function from a numeric column for selected item in list and store result in variable.

calculate_aggregate_function_1

SharePoint Workflow Designer Phrase#

Calculate this function on this field from all items at list url and store result in variable

Parameters#

Input parameters

ParameterDescriptionExample
this functionName of the aggregate function.Available Functions: Count, Avg, Min, Max, Standard Deviation, Mode.
this fieldOptional. Numerical field on which mathematical function will be performed. Field display name. Field unique ID (Guid). Field index (int).Not required for Countfunction.FieldName 23{F3DF15C2-F16E-4FD3-85F6-7EE05227A079}
AllOptional. List item filter. The filter string supports View Name, View ID andCAML string (<Where>...</Where>).<View Scope='RecursiveAll'><Query><Where><Contains><FieldRef Name='FileLeafRef' />
Empty filter returns all items.<Value Type='File'> .docx </Value></Contains></Where><OrderBy><FieldRef Name='ID' /></OrderBy></Query></View>
list identifierList name, list base template, guid or list urlEx: http://mysharepoint/MyDocs/Shared%20Documents Ex:http://mysharepoint/Lists/List%20with%20Approve
VariableThis activity will place function result into an output variable (Double).
Available Functions#
NameDescription
CountTotal number of items
SumThe sum of items
AvgAverage of values from the specified column
MaxSmallest non-null value in the specified column
MinLargest non-null value in the specified column
Standard DeviationA measure of the variation in a distribution of values from the specified column, equal to the square root of the arithmetic mean of the squares of the deviations from the arithmetic mean; the square root of the variancehttp://en.wikipedia.org/wiki/Standard_deviation
ModeThe mode is the value that occurs the most frequently in a data set or a probability distribution.http://en.wikipedia.org/wiki/Mode_%28statistics%29

Example

calculate_aggregate_function_2

Was this article helpful to you?

Updated on October 28, 2024