Differences

This shows you the differences between two versions of the page.

Link to this comparison view

expression function - count [2016/09/14 18:19]
expression function - count [2016/09/14 18:19] (current)
Line 1: Line 1:
 +====== Count (Expression Function) ======
  
 +===== Purpose =====
 +The **Count** function (COUNT) is used to count the number of values returned by a certain query. It does not add the values together to achieve that use the [[Expression Function - Sum|Sum]] function
 +
 +{{::​count_initial.png?​direct&​600|}}
 +
 +===== Parameters =====
 +The **Count** function has one parameters:
 +
 +==== Field Value ====
 +
 +Allowed Inputs: [[Field|field]] values
 +
 +The parameter of the **Count** function are the field values to be counted. ​ The input is a query built using the [[Query Builder]] to find [[Field|field]] values on one or many [[record|record(s)]] in a [[Table|table]].
 +
 +===== Output =====
 +
 +The output of the **Count** function is a number representing a count of all the values found.
 +
 +===== Example =====
 +
 +If an Invoice record has 4 related Line Item records, and those records have values of -6, 8, 8, and 24 in the Quantity field, COUNT(${Line Item ~> Quantity}) would result in 4.
expression function - count.txt ยท Last modified: 2016/09/14 18:19 (external edit)
Copyright WorkXpress, 2024