ROW function
Applies to:
Calculated column
Calculated table
Measure
Visual calculation
Returns a table with a single row containing values that result from the expressions given to each column.
Syntax
ROW(<name>, <expression>[[,<name>, <expression>]…])
Parameters
Term | Definition |
---|---|
name | The name given to the column, enclosed in double quotes. |
expression | Any DAX expression that returns a single scalar value to populate. name. |
Return value
A single row table
Remarks
Arguments must always come in pairs of name and expression.
This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
Example
The following example returns a single row table with the total sales for internet and resellers channels.
ROW("Internet Total Sales (USD)", SUM(InternetSales_USD[SalesAmount_USD]),
"Resellers Total Sales (USD)", SUM(ResellerSales_USD[SalesAmount_USD]))
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho