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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

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

That worked perfectly. Thanks for your help.

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.