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
IwanVB
Frequent Visitor

Matrix - Replace zero by blank

I have some large Matrix visuals with also many Zero's (0) in there. To improve readability I would like to replace the Zero by Blank or something else e.g. "-". Google gives many tips on how to replace blanks by zero, but not on replacing zero by blank.

 

Good to know: These zero can occure in two ways; 1) the value is acutal zero, or 2) it is a blank which appears zero in the matrix. In the matrix visual both should be replaced from zero to blank or something like "-"

1 ACCEPTED SOLUTION
Anonymous
Not applicable

like this?

dax = if ([value]=0 || [value]= blank(),"-")

View solution in original post

2 REPLIES 2
IwanVB
Frequent Visitor

THANKS....this works perfect. Did not exect it to work since I made the assuption that the null values created by the Matrix visual self would not be replaced, but they are.

Anonymous
Not applicable

like this?

dax = if ([value]=0 || [value]= blank(),"-")

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.