Forum Discussion

PedroLeal's avatar
PedroLeal
New Member
3 years ago
Solved

First Return

I had a card that i just want to keep as a label of the country that is selected in the map
but, when we are not selecting any country, return the first value, that its for exemple, afeganisthan.

There is a DAX formula that can solve my problem?
to instead of returning the first value if no country is selected, to return "select a country"

  • Are you expecting something like below:

     

    The code for the measure:
    CountrySelected = SELECTEDVALUE(Data[Country], "Select a country in the slicer")

2 Replies

  • Are you expecting something like below:

     

    The code for the measure:
    CountrySelected = SELECTEDVALUE(Data[Country], "Select a country in the slicer")