NAMEOF DAX Function (Information) Volatile
Returns the name of a table, column, measure, or calendar as a text string. Optional parameters control which component of the name is returned and how the result is escaped.
Syntax
| Parameter | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Value |
The
|
|||||||||||||||||
| Component | Optional |
The
|
||||||||||||||||
| Escaped | Optional |
Optional. An enumeration indicating the format of the name to be returned. |
Return values
A text string with the requested name, formatted based on the component and escaped parameters.
Remarks
- When called with only the
objectargument, NAMEOF behaves the same as in previous versions, returning a fully qualified, escaped name. Becausecomponentdefaults toFULLandescapeddefaults toESCAPED, the return formats are:- For tables:
'TableName'. - For columns:
'TableName'[ColumnName]. - For measures:
'TableName'[MeasureName]. - For calendars:
'CalendarName'. - For variation columns:
'TableName'[ColumnName].[VariationName].
- For tables:
- Variables and dynamic expressions are not supported as arguments to NAMEOF.
- This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
» 1 related function
Examples
EVALUATE
{
NAMEOF ( Sales[Sales Amount] ), // Measure reference
NAMEOF ( [Sales Amount] ), // Measure reference
NAMEOF ( Customer[Birth Date] ) // Column reference
}
| Value |
|---|
| ‘Sales'[Sales Amount] |
| ‘Sales'[Sales Amount] |
| ‘Customer'[Birth Date] |
Related articles
Learn more about NAMEOF in the following articles:
-
Using field parameters and calculation groups for conditional formatting
This article describes how to apply conditional formatting on measures picked from a slicer and implemented using two techniques: field parameters and calculation groups. » Read more
-
Fields parameters in Power BI
This article analyzes the fields parameters feature in Power BI, unveiling some of the internals of its implementation. » Read more
-
Understanding parameter types in DAX user-defined functions (UDF)
This article describes the parameter types available in DAX user-defined functions, focusing on the specialized reference types MEASUREREF, COLUMNREF, TABLEREF, and CALENDARREF. » Read more
Related functions
Other related functions are:
Last update: Apr 21, 2026 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo, Kenneth Barber,
Microsoft documentation: https://learn.microsoft.com/dax/nameof-function-dax