Filter Functions Flashcards

1
Q

ALLCROSSFILTERED(table)

A

Clear all filters which are applied to a table.
Can only be used to clear filters but not to return a table. Can be used only as a CALCULATE modifier and cannot be used as a table function.
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

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

REMOVEFILTERS([table | column[, column[, column[,…]]]])

A

Clear filters from the specified tables or columns.

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

PARTITIONBY ( partitionBy_columnName[, partitionBy_columnName [, …] ] )

A

Defines the columns that are used to partition a window function’s relation parameter.

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

ORDERBY ( orderBy_columnName[, order][, orderBy_columnName [, order]] [, …] )

A

Defines the columns that determine the sort order within each of a window function’s partitions.

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

CALCULATETABLE(expression[, filter1 [, filter2 [, …]]])

A

Evaluates a table expression in a modified filter context.

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

CALCULATE(expression[, filter1 [, filter2 [, …]]])

A

Evaluates an expression in a modified filter context.

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

ALLNOBLANKROW( {table | column[, column[, column[,…]]]} )

A

From the parent table of a relationship, returns all rows but the blank row, or all distinct values of a column but the blank row, and disregards any context filters that might exist.

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

KEEPFILTERS(expression)

A

Modifies how filters are applied while evaluating a CALCULATE or CALCULATETABLE function.

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

ALLEXCEPT(table,column[,column[,…]])

A

Removes all context filters in the table except filters that have been applied to the specified columns.

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

ALLSELECTED([tableName | columnName[, columnName[, columnName[,…]]]] )

A

Removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.

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

INDEX(position[, relation][, orderBy][, blanks][, partitionBy])

A

Returns a row at an absolute position, specified by the position parameter, within the specified partition, sorted by the specified order. If the current partition can’t be deduced to a single partition, multiple rows may be returned.

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

OFFSET ( delta[, relation][, orderBy][, blanks][, partitionBy] )

A

Returns a single row that is positioned either before or after the current row within the same table, by a given offset. If the current row cannot be deduced to a single row, multiple rows may be returned.

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

FILTER(table,filter)

A

Returns a table that represents a subset of another table or expression.

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

ALL( [table | column[, column[, column[,…]]]] )

A

Returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.

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

WINDOW ( from[, from_type], to[, to_type][, relation][, orderBy][, blanks][, partitionBy] )

A

Returns multiple rows which are positioned within the given interval.

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

EARLIER(column, number)

A

Returns the current value of the specified column in an outer evaluation pass of the mentioned column.

17
Q

EARLIEST(column)

A

Returns the current value of the specified column in an outer evaluation pass of the specified column.

18
Q

LOOKUPVALUE(
result_columnName,
search_columnName,
search_value
[, search2_columnName, search2_value]…
[, alternateResult]
)

A

Returns the value for the row that meets all criteria specified by one or more search conditions.

19
Q

SELECTEDVALUE(columnName[, alternateResult])

A

Returns the value when the context for columnName has been filtered down to one distinct value only. Otherwise returns alternateResult.