Skip to content

COUNT

COUNT is a function that calculates the number of all entries within a specified column. It helps quantify the occurrence of data points in a dataset.

Applicable to

  • Calculated Columns
  • Expressions

Return Value

The return value of the COUNT function is an integer representing the count of all entries.

Remark

  • COUNT is a versatile function can be used for assessing the size of a dataset.
  • COUNT function returns the total count including nulls and blanks.
  • COUNT function can be used across Dates, Strings, and Numbers.

Syntax

COUNT(<expression>)

COUNT in Board Expression

Parameters

ExpressionA placeholder in a function that is replaced with the actual widget and measure names.
Widget NameThe specific name or identifier of the widget being used for data visualization in the specific Infoboard.
MeasureRepresents the name of the measure that is being displayed or analyzed using the widget.

Steps to Use COUNT

  1. Write the COUNT function. For instance COUNT(<expression>)
  2. Replace <expression> with 'Widget Name'[Measure]. Replace Widget Name with the actual name of your widget and Measure with the corresponding measure name.
  3. Set the condition with the COUNT function based on the scenario. For instance, you can set the count entries that meet a certain criterion, as the condition.
  4. To learn how to configure an Expression in Infoveave, visit the section Configure Expression.

Example

Scenario Imagine you are responsible for overseeing a Solar Grid Management System, and your primary objective is to ensure that the grid operates efficiently and safely. One critical aspect is monitoring the number of solar customers connected to the grid in real-time.

Scenario Details

  • Dashboard Name Solar Energy Dashboard
  • Widget Name Solar In
  • Measure Solar Customers (quantifying the number of solar customers)
  • Dimension Discount Types (categorizing customers based on their payment behavior)
  • Dimension Value “Always” (representing customers who pay their bills on time)

Objective Your goal is to use the COUNT function within an Expression to count the number of solar customers in real-time. When this count reaches a certain value, you want to trigger an action to alert users that the grid is approaching capacity.

You can use the COUNT function like this

COUNT('Solar In'[Solar Customers])=100

COUNT in Calculated Columns

Parameters

ExpressionA placeholder in a function that is replaced with the column names.
Column NameThe name of the column in the dataset or Datasource that contains the values you want to analyze.

Write the COUNT function. For instance

COUNT(<expression>)
  • Replace <expression> with [Column Name].Replace Column Name with the actual name of your column required.
  • To learn how to add calculated columns in Infoveave, visit the section Calculated Columns.

Example

Objective Consider that you have the below sales dataset, your goal is to count the number of rows in the dataset.

ORDER DATECOUNTRYCATEGORYUNIT PRICEMARKET PRICEQUANTITY
2024-01-03BrazilBaby Food38.4143.78742
2024-01-07JapanSpices45.5650.815520
Japan43.787410
2024-01-1832.30194
2024-01-22BrazilCosmetics28.33523.01097
2024-01-26Canada20.18523.01099
2024-01-04FranceCereal25.2628.79649
2024-01-09BrazilCereal44.57550.81558
2024-01-14BrazilSnacks20.1854
BrazilCosmetics40.48546.15292

You can use the COUNT function like

COUNT([COUNTRY])

The new calculated column “Total Entries” will return the total number of rows in the dataset considering nulls and blanks as 10

ORDER DATECOUNTRYCATEGORYUNIT PRICEMARKET PRICEQUANTITYTOTAL ENTRIES
03-01-2024BrazilBaby Food38.4143.7874210
07-01-2024JapanSpices45.5650.81552010
Japan43.78741010
18-01-202432.3019410
22-01-2024BrazilCosmetics28.33523.0109710
26-01-2024Canada20.18523.0109910
04-01-2024FranceCereal25.2628.7964910
09-01-2024BrazilCereal44.57550.8155810
14-01-2024BrazilSnacks20.185410
BrazilCosmetics40.48546.1529210