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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.