Forum Discussion

IwanVB's avatar
IwanVB
Frequent Visitor
4 years ago
Solved

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 "-"

  • Anonymous's avatar
    Anonymous
    4 years ago

    like this?

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    like this?

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

  • IwanVB's avatar
    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.