Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dynamic tooltip with text measure

Hi,

 

I want to use the dynamic tooltip by MAQ software. (Alternatives are welcome)

I have a measure that according to the setting of a language filter (EN vs. FR) shows the English text or the French text as the tooltip.

My measure is this:

 

dynamic_tooltip =
var _lan_ = SELECTEDVALUE(SELECTED_LANGUAGE)
return
SWITCH(_lan_; "FR"; "Texte en français"; "Text in English")

 

The result should be:

SELECTED_LANGUAGESELECTED_LANGUAGE
ENFR

 

Thanks

 

R.W.

 

 

 

  • Hi Anonymous ,

     

    To update your measure as below.

    dynamic_tooltip = 
    var _lan_ = SELECTEDVALUE('Table'[Lan])
    return
    SWITCH(_lan_, "FR", "Texte en français","EN","Text in English")

     

1 Reply

  • v-frfei-msft's avatar
    v-frfei-msft
    Community Support

    Hi Anonymous ,

     

    To update your measure as below.

    dynamic_tooltip = 
    var _lan_ = SELECTEDVALUE('Table'[Lan])
    return
    SWITCH(_lan_, "FR", "Texte en français","EN","Text in English")