Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
junsarah3000
Frequent Visitor

Error Table return text as YES, if not No

junsarah3000_0-1638039725828.png

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @junsarah3000 ,

 

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

vhenrykmstf_1-1638236047143.png

vhenrykmstf_0-1638236016431.png

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.

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @junsarah3000 ,

 

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

vhenrykmstf_1-1638236047143.png

vhenrykmstf_0-1638236016431.png

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.

junsarah3000
Frequent Visitor

@amitchandak

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

amitchandak
Super User
Super User

@junsarah3000 ,

Logic is not very clear

 

a new column =

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.