DAX Function Guide

SELECTEDMEASUREFORMATSTRING
Empty image or helper icon

Sam McKay

CEO & Founder

How does the SELECTEDMEASUREFORMATSTRING work?
The SELECTEDMEASUREFORMATSTRING function (DAX) returns format string for the measure that is currently being evaluated.
SELECTEDMEASUREFORMATSTRING Formula Syntax

SELECTMEASUREFORMATSTRING(
     
)

How do you use the SELECTEDMEASUREFORMATSTRING?

This function can only be referenced in expressions for calculation items in calculation groups. It is designed to be used by the Format String Expression property of calculation items.

Related Blog Posts

Loading

Considerations when using the SELECTEDMEASUREFORMATSTRING?

If the model contains a measure that returns the currently selected currency and you want to include the currency symbol as part of the format string, you can use this code to append the currency symbol to the current format string.

Customizing the format string of a calculation item is useful to preserve user experience consistency when browsing the model. However, a careful developer should consider that the format string operates on any measure used with the calculation item. When there are multiple calculation groups in a report, the result produced by these properties also depends on the calculation group precedence.

Related Video Tutorials

Loading

Formula examples using the SELECTEDMEASUREFORMATSTRING

SELECTEDVALUE( DimCurrency[FormatString], SELECTEDMEASUREFORMATSTRING() )

Related Courses

Loading