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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ahhollan
Helper I
Helper I

include value from column only if it includes the value of another column

I have a table laid out as below.

Bldg ID      Name

CUF123     CUF main

CUF456    CUF storage

 

I have another table from another system with the same type of date only the id's are different. However, the Bldg ID is appended to the name as below.

Bldg ID      Name

123456      CUF main (CUF123)

78987        CUF storage (CUF456)

 

I'm trying to create a table with a row that contains all fields from both tables where the Bldg ID from the first table is in () in the Name on the second table. How do I accomplish this?

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @ahhollan 

In Table 2, 
Create a duplicate of the Name column in Power Query
Then use Split Column option with use as follow
01.JPG

Rename the column header as per your require

Let me know, it solve your requrement

If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

2 REPLIES 2
PijushRoy
Super User
Super User

Hi @ahhollan 

In Table 2, 
Create a duplicate of the Name column in Power Query
Then use Split Column option with use as follow
01.JPG

Rename the column header as per your require

Let me know, it solve your requrement

If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





That worked perfectly. Thanks for your help.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.