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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
prakash11440278
Post Prodigy
Post Prodigy

Replace dash symbol with Blank

Hi Power BI Experts,

I want to change the dash symbol to blank in my measure. Can you please help on the dax expression?

Below is the test measure i am using.

MEASURE = IF(SUM(table[sales])<0,"("& SUM(table[sales])&")", SUM(table[sales]))

 
 
 

Capture.PNG

 

1 ACCEPTED SOLUTION

@harshnathani @amitchandak ,

Thanks for your reply on this issue.

My issue is resolved using Substitute function. Thanks.

Measure: substitute(measure,"-","")

 

View solution in original post

3 REPLIES 3
harshnathani
Community Champion
Community Champion

HI @prakash11440278 .

 

Use ABS function

 

https://dax.guide/abs/

 

Regards,

Harsh Nathani

@harshnathani @amitchandak ,

Thanks for your reply on this issue.

My issue is resolved using Substitute function. Thanks.

Measure: substitute(measure,"-","")

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.