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
gladies123
Helper I
Helper I

Reg:To dispaly "-" in Numeric column

Hi Team,

Kindly Help me to find a solution to display a "-" in numeric column , i have attached the image for your reference

gladies123_1-1632130053996.png

for example if CP and W doesn't have value which belongs to single(status) instead of blank it has to display "-" but when i am trying to do it in dax it shows below error message

"Expressions that yield variant data-type cannot be used to define calculated columns."

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gladies123 , You have to create statements like

 

coalesce(format([measure], "#,###","-")

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@gladies123 , You have to create statements like

 

coalesce(format([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.