COUNTX

Definition:
  • COUNTX is a widely used function in data analysis that calculates the number of rows or entries within a specified table or reference that meet specific conditions defined by an expression. It provides a count of rows where the given condition evaluates to true.
Applicable to:
Calculated Columns Expressions
Return Value:
  • The return value of the COUNTX function is an integer representing the count of rows within the specified reference where the condition evaluates to true.
Remark:
  • COUNTX is particularly useful when you need to count rows based on complex conditions or expressions.
  • COUNTX enables you to perform conditional counting and filtering within datasets.
  • COUNTX helps to identify and quantify specific patterns or subsets of data.
  • COUNTX function can be used across Date, Strings and Numbers.
Syntax:

COUNTX(<expression>,<condition>)

COUNTX in Board Expression

Parameters
Expression A placeholder in a function that is replaced with the actual widget and measure names.
Condition A placeholder in a function that is replaced with the condition filter.
Widget Name The specific name or identifier of the widget being used for data visualization in the specific Infoboard.
Measure Represents the name of the measure that is being displayed or analyzed using the widget.
Dimension Represents the dimension column that is being displayed or analyzed using the widget.
Dimension Value Represents the specific dimension items within the dimension column used for the visualization in the widget.
  • Write the COUNTX function. For instance:

COUNTX(<expression>,<condition>)

  • Where expression equals 'Widget Name'[Measure] and condition equals [Dimension Name]="Dimension Value"
    • Replace Widget Name with the actual name of your widget, Measure with the required measure name, Dimension with the required dimension name and Dimension Value with the dimension value of the selected dimension name.
  • Set the COUNTX function based on the scenario.
  • To learn how to configure an Expression in Infoveave, visit the section Configure Expression.

COUNTX in Calculated Columns

Parameters
Expression A placeholder in a function that is replaced with the actual widget and measure names.
Condition A placeholder in a function that is replaced with the condition filter.
Column Name The name of the column in the dataset or Datasource that contains the values you want to analyze.
Filter Condition A filter condition returns the data points that meet the defined condition that you want to analyze. The filter condition can be either a string or a numeric.
  • Write the COUNTX function. For instance:

COUNTX(<expression>,<condition>)

  • Replace <expression> with required [Column Name] and <condition> equals [Column Name]="Filter Condition"
  • Replace Column Name with the actual name of your column and Filter Condition with the required condition to be applied on the columns.
  • To learn how to add calculated columns in Infoveave, visit the section Calculated Columns.

Related Functions

  • COUNT
  • COUNTNOBLANK
  • COUNTNOBLANKX
  • DISTINCTCOUNT
  • DISTINCTCOUNTX
  • DISTINCTCOUNTNOBLANK
  • DISTINCTCOUNTNOBLANKX
Was this article helpful to you? Yes No

How can we help?

Copyright © 2024 Noesys Software Pvt. Ltd.

Infoveave is a proprietary product of Noesys.  All Rights Reserved.