Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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)
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

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



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

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



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.