Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Selectedvalue with bracked

Hi Experts

 

How can i add brackets on to the following dax measure

 

Measure = 

SelectedValue = SELECTEDVALUE('pg_control_cases'[country_dim.country_name])
 
expected end result = - (canada)
  • Hi Anonymous 

     

    Not entirely sure what you mean, do you want brackets around the result returned by the measure?

     

    If so, use this

     

    Measure = "(" & SELECTEDVALUE('pg_control_cases'[country_dim.country_name]) & ")"

     

    If you also need a - before the ( just add that into my code.

     

    regards

     

    Phil

1 Reply

  • Hi Anonymous 

     

    Not entirely sure what you mean, do you want brackets around the result returned by the measure?

     

    If so, use this

     

    Measure = "(" & SELECTEDVALUE('pg_control_cases'[country_dim.country_name]) & ")"

     

    If you also need a - before the ( just add that into my code.

     

    regards

     

    Phil