- DAX Functions Tutorial
- DAX Functions - Home
- DAX Functions - Introduction
- DAX Parameter Naming Conventions
- Description Structure
- DAX Functions - Aggregation
- DAX Functions - Filter
- DAX Functions - Time Intelligence
- DAX Functions - Date and Time
- DAX Functions - Information
- DAX Functions - Logical
- Math & Trigonometric Functions
- DAX Functions - Parent & Child
- DAX Functions - Statistical
- DAX Functions - Text
- DAX Functions - Other
- DAX Functions Useful Resources
- DAX Functions - Quick Guide
- DAX Functions - Useful Resources
- DAX Functions - Discussion
DAX Aggregation - SUMX function
Description
Returns the sum of an expression evaluated for each row in a table.
Syntax
SUMX (<table>, <expression>)
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
table The table containing the rows for which the expression will be evaluated. |
2 |
expression The expression to be evaluated for each row of the table. |
Return Value
A decimal number.
Remarks
Only the numbers in the column that results by evaluating the expression are counted.
Blanks, logical values, and text are ignored.
Example
USA Gold Medal Count:= SUMX( Results,IF(AND([Country] = "USA",[Medal] = "Gold") = TRUE(),1,0) )
dax_functions_aggregation.htm
Advertisements