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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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