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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Matt_Mohawk
Helper II
Helper II

Multiple Yes/No Fields Into one Field

Hi,

 

I have a table that has 4 yes/no fields. I would like to combine these fields into one field and if they have Yes in the cell then I would like for the value to be the field name that is being merged. For example if International (Y/N) is showing Y on a row then I would like for the new merged column to say International (Y/N) instead of Y. See image below.

 

 

Screen Shot 2022-04-20 at 11.08.52 AM.png

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

In Power Query go to the Add Column section and choose Conditional Column. You can add clauses looking at the different columns and set the value accordingly

View solution in original post

2 REPLIES 2
Matt_Mohawk
Helper II
Helper II

Thanks @johnt75,

I didn't think it was something that simple lol.

 

Thanks again!

johnt75
Super User
Super User

In Power Query go to the Add Column section and choose Conditional Column. You can add clauses looking at the different columns and set the value accordingly

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.