SELECTEDMEASURENAME
In a calculation item, the name of the measure in context.
Group: Information. Compatible with DAX.
Syntax
SELECTEDMEASURENAME ( )
It takes no parameters.
Returns
Text. The name of the measure the calculation item is applied to, without its table or brackets.
Remarks
- It lets one item treat measures differently by name, or show which measure it rewrote. To test for given measures,
ISSELECTEDMEASUREtakes the measures themselves rather than their names as text. - For a measure that the query defines, it gives that measure's name.
- Outside a calculation item's expression the call is an error.
Examples
Outside a calculation item
The Example Brewery has no calculation group, and a query cannot define one; outside a calculation item the call has nothing to refer to, and is an error.
EVALUATE
ROW ( "Name", SELECTEDMEASURENAME () )
Result: an error.
Related functions
ISSELECTEDMEASURE, SELECTEDMEASURE, NAMEOF, SELECTEDMEASUREFORMATSTRING.