Forum Discussion

PhoenixBird66's avatar
PhoenixBird66
Icon for Helper III rankHelper III
6 years ago
Solved

DAX help - Custom column should be null if a value in another column is null

I have created a custom column [Part] which is concatentation of two other columns [Customer OTI number] & [Order Part Number]. Both of these columns are of type text.

I need the value in the new custom column [Part] to be blank if the value in [Order Part Number] is blank.

Currently it looks like this below. I've highlighted the problem in yellow. I need these values to be blank.

Any ideas how best to do it?

  • =if([Order Part Number]="",blank(),whateverconcatenatingfunctionyou'redoingatthemoment)

1 Reply

  • jthomson's avatar
    jthomson
    Icon for Solution Sage rankSolution Sage

    =if([Order Part Number]="",blank(),whateverconcatenatingfunctionyou'redoingatthemoment)