Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Error Table return text as YES, if not No

 

  • Hi Anonymous ,

     

    According to your description, you first need to change the field type of columnA-E from True/False to Test type, and then try the following formula to get the result.

    Column =
    IF (
        'Table'[A] = "True"
            || 'Table'[B] = "True"
            || 'Table'[C] = "True"
            || 'Table'[D] = "True"
            || 'Table'[E] = "True",
        "Yes",
        "No"
    )

    If the problem is still not resolved, please point it out. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    According to your description, you first need to change the field type of columnA-E from True/False to Test type, and then try the following formula to get the result.

    Column =
    IF (
        'Table'[A] = "True"
            || 'Table'[B] = "True"
            || 'Table'[C] = "True"
            || 'Table'[D] = "True"
            || 'Table'[E] = "True",
        "Yes",
        "No"
    )

    If the problem is still not resolved, please point it out. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous ,

    Logic is not very clear

     

    a new column =

    if([A] =false() ||[B] =false() || [C] =false() || [D] =false() || [E] =false(), "Yes", "No")

  • Anonymous's avatar
    Anonymous
    Not applicable

    amitchandak

    One or more "True" text from columns A to E should return "Yes" on the new column, otherwise it will return "No".