11,856
edits
Changes
Updating to match new version of source page
<div class="index-right">__TOC__</div>
You can create expressions (formulas) directly in the dashboard components. It can thus display calculated values that are not present in the data source datasource file/spreadsheet.
'''BETWEEN("Date Issued"; '01/01/2019'; '31/12/2019')''' - Returns true if ''Date Issued'' is between ''01/01/2019'' and ''12/31/2019''. Otherwise returns false
==== COUNT function ====
Returns number of occurrences (lines) for column or value.
By now this functions works only at Datasource expressions
Syntax:
COUNT(<expression>)
Example:
'''COUNT("Product")''' - Returns number of occurrences (lines) of products
==== COUNT_DISTINCT function ====
Returns number of unique occurrences (lines) for column or value.
By now this functions works only at Datasource expressions
Syntax:
COUNT_DISTINCT(<expression>)
Example:
'''COUNT_DISTINCT("Product")''' - Returns number of unique (different) occurrences (lines) of products
==== IF ELSE function (If .... Otherwise ...) ====
* '''"@accumCol[column]"''' - Cumulative value from column to current row. Useful for calculating variable mean.
** Example: ''"@accumCol[column]"'' / ''"@row"''
* '''"@avg[column]"''' - Average column, similar to ''"@sum[column]"'' / ''"@count"''
* '''"@count"''' - Total number of rows that were returned for the component.
* '''"@prev[column]"''' - Row value before current row for this column
* '''"@row"''' - Current row number
* '''"@sum[column]"''' - Sum of the indicated column.
** Example: ''"@sum[Price]"'' - returns the sum of all rows in the ''Price'' column.
* '''"@avgtotalColumnValue[column]"''' - Average Value of total column, similar to ''"@sum[column]"'' / ''"@count"''* '''"@prev[column]"''' - Row value before current row for (if present), from this column.
* '''"@totalRowValue[column]"''' - Value of total row, (if present), from this column.