cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
junsarah3000
Regular 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
Regular 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")

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!