Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Creat mutiple columns based on a column from another table

Hey guys!


I want to create mutiple columns in the first table with headers from the colunmn "tag_name" in table 2 
(like "1940s", "american", "funky", etc.), and then check whether the column "tags" in table 1 contain it. If yes, fill 1, if no, leave it blank. TIs there any way I can fast import the colunmn "tag_name" in table 2 as the column headers in table 1? If not, is there any fast way I can use the words from column "tags" in table 1 to create new columns and check whether "tags" contain it? I know that I can use "conditional column" button under "Add Column" but I can only create one new column at once and I have 115 tags here.


Thank you in advanced!

Capture 1.PNGCapture 2.PNG

Community Support
Community Support

Hi @hanxu95 

Do you want to compare all rows in "tag_name" to the each row in "tag",

If the value of one row in "tag_name" can be found in one row in "tag", get a column which is 1 for this row.


Is my understanding correct?


Best Regards


Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie,


Do you have any idea how I can do it?

Hi @v-juanli-msft ,


Thank you so much for your reply! That's correct!

Helpful resources

June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

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

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors