Table Manipulation Functions Flashcards

1
Q

ADDCOLUMNS(table, name, expression[, name, expression]…)

A

Adds calculated columns to the given table or table expression.

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

ADDMISSINGITEMS ( [showAll_columnName [, showAll_columnName [, … ] ] ], table [, groupBy_columnName [, [filterTable] [, groupBy_columnName [, [filterTable] [, … ] ] ] ] ] ] )

A

Adds rows with empty values to a table returned by SUMMARIZECOLUMNS.

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

TREATAS(table_expression, column[, column[, column[,…]]]} )

A

Applies the result of a table expression as filters to columns from an unrelated table.

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

UNION(table_expression1, table_expression2 [,table_expression]…)

A

Creates a union (join) table from a pair of tables.

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

DETAILROWS([Measure])

A

Evaluates a Detail Rows Expression defined for a measure and returns the data.

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

ROLLUPGROUP (groupBy_columnName [, groupBy_columnName [, … ] ] )

A

Modifies the behavior of the SUMMARIZE and SUMMARIZECOLUMNS functions by adding rollup rows to the result on columns defined by the the groupBy_columnName parameter. This function can only be used within a SUMMARIZE or SUMMARIZECOLUMNS expression.

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

ROLLUP (groupBy_columnName [, groupBy_columnName [, … ] ] )

A

Modifies the behavior of the SUMMARIZE function by adding rollup rows to the result on columns defined by the groupBy_columnName parameter. This function can only be used within a SUMMARIZE expression.

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

ROLLUPADDISSUBTOTAL ( [grandtotalFilter], groupBy_columnName, name [, [groupLevelFilter] [, groupBy_columnName, name [, [groupLevelFilter] [, … ] ] ] ] )

A

Modifies the behavior of the SUMMARIZECOLUMNS function by adding rollup/subtotal rows to the result based on the groupBy_columnName columns. This function can only be used within a SUMMARIZECOLUMNS expression.

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

IGNORE(expression)

A

Modifies the behavior of the SUMMARIZECOLUMNS function by omitting specific expressions from the BLANK/NULL evaluation. Rows for which all expressions not using IGNORE return BLANK/NULL will be excluded independent of whether the expressions which do use IGNORE evaluate to BLANK/NULL or not. This function can only be used within a SUMMARIZECOLUMNS expression.

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

ROLLUPISSUBTOTAL ( [grandTotalFilter], groupBy_columnName, isSubtotal_columnName [, [groupLevelFilter] [, groupBy_columnName, isSubtotal_columnName [, [groupLevelFilter] [, … ] ] ] ] )

A

Pairs rollup groups with the column added by ROLLUPADDISSUBTOTAL. This function can only be used within an ADDMISSINGITEMS expression.

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

NATURALLEFTOUTERJOIN(LeftTable, RightTable)

A

Performs a join of the LeftTable with the RightTable by using the Left Outer Join semantics.

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

NATURALINNERJOIN(LeftTable, RightTable)

A

Performs an inner join of a table with another table.

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

DATATABLE (ColumnName1, DataType1, ColumnName2, DataType2…, {{Value1, Value2…}, {ValueN, ValueN+1…}…})

A

Provides a mechanism for declaring an inline set of data values.

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

DISTINCT(column)

A

Returns a one-column table that contains the distinct values from the specified column. In other words, duplicate values are removed and only unique values are returned.

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

CURRENTGROUP ( )

A

Returns a set of rows from the table argument of a GROUPBY expression that belong to the current row of the GROUPBY result.

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

GENERATESERIES(startValue, endValue[, incrementValue])

A

Returns a single column table containing the values of an arithmetic series, that is, a sequence of values in which each differs from the preceding by a constant quantity. The name of the column returned is Value.

17
Q

SUMMARIZE (table, groupBy_columnName[, groupBy_columnName]…[, name, expression]…)

A

Returns a summary table for the requested totals over a set of groups.

18
Q

SUMMARIZECOLUMNS( groupBy_columnName [, groupBy_columnName]…, [filterTable]…[, name, expression]…)

A

Returns a summary table over a set of groups.

19
Q

DISTINCT(table)

A

Returns a table by removing duplicate rows from another table or expression.

20
Q

”{ scalarExpr1, scalarExpr2, … }
{ ( scalarExpr1, scalarExpr2, … ), ( scalarExpr1, scalarExpr2, … ), … }”

A

Returns a table of one or more columns.

21
Q

CROSSJOIN(table, table[, table]…)

A

Returns a table that contains the Cartesian product of all rows from all tables in the arguments. The columns in the new table are all the columns in all the argument tables.

22
Q

SUBSTITUTEWITHINDEX(table, indexColumnName, indexColumnsTable, [orderBy_expression, [order][, orderBy_expression, [order]]…])

A

Returns a table which represents a left semijoin of the two tables supplied as arguments. The semijoin is performed by using common columns, determined by common column names and common data type . The columns being joined on are replaced with a single column in the returned table which is of type integer and contains an index. The index is a reference into the right join table given a specified sort order.

23
Q

ROW(name, expression[[,name, expression]…])

A

Returns a table with a single row containing values that result from the expressions given to each column.

24
Q

SELECTCOLUMNS(Table, [Name], Expression, Name], …)

A

Returns a table with selected columns from the table and new columns specified by the DAX expressions.

25
Q

GENERATE(table1, table2)

A

Returns a table with the Cartesian product between each row in table1 and the table that results from evaluating table2 in the context of the current row from table1.

26
Q

GENERATEALL(table1, table2)

A

Returns a table with the Cartesian product between each row in table1 and the table that results from evaluating table2 in the context of the current row from table1.

27
Q

INTERSECT(table_expression1, table_expression2)

A

Returns the row intersection of two tables, retaining duplicates.

28
Q

EXCEPT(table_expression1, table_expression2

A

Returns the rows of the first table in the expression which do not appear in the second table.

29
Q

TOPN(N_Value, Table, OrderBy_Expression, [Order[, OrderBy_Expression, [Order]]…])

A

Returns the top N rows of the specified table.

30
Q

FILTERS(columnName)

A

Returns the values that are directly applied as filters to columnName.

31
Q

GROUPBY (table [, groupBy_columnName [, groupBy_columnName [, …]]] [, name, expression [, name, expression [, …]]])

A

The GROUPBY function is similar to the SUMMARIZE function. However, GROUPBY does not do an implicit CALCULATE for any extension columns that it adds. GROUPBY permits a new function, CURRENTGROUP, to be used inside aggregation functions in the extension columns that it adds. GROUPBY is used to perform multiple aggregations in a single table scan.

32
Q

VALUES(TableNameOrColumnName)

A

When the input parameter is a column name, returns a one-column table that contains the distinct values from the specified column. Duplicate values are removed and only unique values are returned. A BLANK value can be added. When the input parameter is a table name, returns the rows from the specified table. Duplicate rows are preserved. A BLANK row can be added.