Aggregation Functions Flashcards

1
Q

SUM(column)

A

Adds all the numbers in a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

AVERAGEX(table,expression)

A

Calculates the average (arithmetic mean) of a set of expressions evaluated over a table. The expression could be CALCULATE(SUM) of a single value column with filters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

COUNTBLANK(column)

A

Counts the number of blank cells in a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DISTINCTCOUNT(column)

A

Counts the number of distinct values in a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

DISTINCTCOUNTNOBLANK (column)

A

Counts the number of distinct values in a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

COUNTA(column)

A

Counts the number of rows (records) in the specified column. Excludes blanks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

COUNT(column)

A

Counts the number of rows (records) in the specified column. Excludes blanks. Works better with columns having numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

COUNTX(table,expression)

A

Counts the number of rows that contain a non-blank value or an expression that evaluates to a non-blank value, when evaluating an expression over a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

MAXX(table,expression)

A

Evaluates an expression for each row of a table and return the largest value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

APPROXIMATEDISTINCTCOUNT(columnName)

A

Returns an estimated count of unique values in a column. This function invokes a corresponding aggregation operation in the data source, which is optimized for query performance, but with slightly reduced accuracy. This function can be used with the following data sources: Azure SQL, Azure SQL Data Warehouse, BigQuery, Databricks, and Snowflake. This function requires DirectQuery mode. Import mode and dual storage mode are not supported.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

AVERAGE(column)

A

Returns the average (arithmetic mean) of all the numbers in a column.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

AVERAGEA(column)

A

Returns the average (arithmetic mean) of the values in a column. Handles text and non-numeric values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

MAX(column)

A

Returns the largest value in a column, or between two scalar expressions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

MAXA(column)

A

Returns the largest value in a column. Handles text and non-numeric values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

PRODUCTX(table, expression)

A

Returns the product of an expression evaluated for each row in a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

PRODUCT(column)

A

Returns the product of the numbers in a column.

17
Q

MIN(column)

A

Returns the smallest value in a column, or between two scalar expressions.

18
Q

MINA(column)

A

Returns the smallest value in a column. Handles text and non-numeric values.

19
Q

MINX(table, expression)

A

Returns the smallest value that results from evaluating an expression for each row of a table.

20
Q

SUMX(table, expression)

A

Returns the sum of an expression evaluated for each row in a table.

21
Q

COUNTAX(table, expression)

A

The COUNTAX function counts non-blank results when evaluating the result of an expression over a table. That is, it works just like the COUNTA function, but is used to iterate through the rows in a table and count rows where the specified expressions results in a non-blank result.

22
Q

COUNTROWS(table)

A

The COUNTROWS function counts the number of rows in the specified table, or in a table defined by an expression.