Forum Discussion

Messy92's avatar
Messy92
New Member
8 years ago
Solved

IF statement problem

Hello! I wanted to ask you something  if i have a mobile phone column, a home phone column and a other phone column How can i create a new column where  i say that if there is at least a number...
  • v-xjiin-msft's avatar
    8 years ago

    Hi Messy92,

     

    Please refer to following sample, see if it works for you:

     

    Flag =
    IF (
        (
            IF ( ISBLANK ( Phones[mobile phone] ), 0, 1 )
                + IF ( ISBLANK ( Phones[Home phone] ), 0, 1 )
                + IF ( ISBLANK ( Phones[other phone] ), 0, 1 )
        )
            >= 1,
        1,
        0
    )

     

    Thanks,
    Xi Jin.