OpenBI Docs Buy

ROW

A table of one row, each column a name and an expression.

Group: Table manipulation. Compatible with DAX.

Syntax

ROW ( <name>, <expression> [, <name>, <expression>] … )
ParameterTypeDescription
nameText
repeatable
A column's name, in quotes.
expressionExpression
repeatable
What the column holds: anything that works out to one value.

Returns

Table. A table of one row, with a column for each name.

Remarks

  • Each expression is evaluated once, in the filter context where ROW stands: a measure gives its value there.
  • An expression must give one value. A table with several rows is an error; CONCATENATEX or COUNTROWS turn one into a value.
  • Each column takes the type of its value.
  • It is the simplest way to see a few values side by side in a query, as most examples on these pages do.

Examples

A few values side by side

EVALUATE
ROW ( "Product", "Pils", "Liters", 120, "Price", 38.5, "Revenue", 120 * 38.5 )
ProductLitersPriceRevenue
Pils12038.54620

Measures in a row

EVALUATE
ROW (
    "Products", COUNTROWS ( Products ),
    "Liters sold", [Liters sold],
    "Pils", CALCULATE ( [Liters sold], Products[Product] = "Pils" )
)
ProductsLiters soldPils
418064631004326

DATATABLE, SELECTCOLUMNS, ADDCOLUMNS, UNION.

Last updated · OpenBI Studio 0.3.74