From the course: Power BI Weekly

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Using the SELECTEDMEASURENAME DAX function

Using the SELECTEDMEASURENAME DAX function - Power BI Tutorial

From the course: Power BI Weekly

Using the SELECTEDMEASURENAME DAX function

- [Instructor] The selectedmeasure DAX function returns the name of the DAX measure in its evaluation context. In Power BI Desktop, let's explore a few ways to use this function, starting with a classic programming example. Let's create a new DAX measure in our Calculations measure group called Hello World. We'll then set its result equal to the function selectedmeasurename. When we add it to a card visual, we see that both the measure name and its result display as Hello world. We can also concatenate this selectedmeasurename formula to other text, like using an ampersand to add an explanation point to the end of the result. This isn't a particularly impactful example, but now let's explore useful examples leveraging this function. In the Power BI model, we also have data for the inflation rates for the US, Canada, and Mexico. Let's create a new measure for the United States to determine its average inflation…

Contents