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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!