ROW

The ROW function returns a table with a single row containing the values specified as arguments.

Syntax

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

Parameters
  • name: Name of the field to create.
  • expression: Value of the field to create. It can be any DAX expression that returns a scalar.
Returned value

The ROW function returns a table.

Additional Information

Arguments must always exist in pairs.

Examples

In this example we start from a data model in which, among others, there is a table of facts that represents the sales made ("Sales"), including a field for the sales figure ("Amount") and another for the number of units involved in the sale ("Units"), and we generate a new table containing a single row with two columns containing the sum of sales and the average value of the number of units sold:

Tabla = ROW(
    "Ventas"; SUM(Sales[Amount]);
    "Valor medio de unidades"; AVERAGE(Sales[Units])
)

Table generated by the ROW function
Category
Other functions
Submitted by admin on Sat, 07/20/2019 - 14:08