Forum Discussion

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

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

I have created a custom column (StdSvcKey) which is concatentation of two other columns (Sell-to Customer No. & Standard Service Code).   Currently if the Standard Service Code has a null value, bu...
  • Mariusz's avatar
    Mariusz
    7 years ago

    Hi PhoenixBird66 

     

    The below will handle nulls and ""

     

    Column = 
    IF( 
        NOT( ISBLANK( 'Table'[Standard Service Code] ) || 'Table'[Standard Service Code] = "" ),
        'Table'[Sell-to Customer No.] & 'Table'[Standard Service Code]
    )

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski