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
Anonymous
Not applicable

How to get data from two unrelated tables with partial search

Hello Everyone,
I hope somebody can help me with this.
I have two tables which don't have relationship ,But I want to create a new column in "table 1" with partial search of using column "units" from "table 2",I was trying using dax function but not able to get suceeded in that,one more tricy thing is there first come first server should be mapping from "table 2" column units ,So below I am sharing the example  

 

table 1:-                                                                

tags
rohit,Devps,Devps/Amer/Ser,Lin,Ser
rj,vps,vps/mer/er,in,er
Devps,Devps/Amer/Ser,Lin,Ser
vps,vps/mer/er,in,er


 table2:- 

unitsform
,rohit,Global 
,Devps,Global
,rj,Global 
,vps,Global 

 

output:-
table 1:

tagsunitform
rohit,Devps,Devps/Amer/Ser,Lin,SerrohitGlobal
rj,vps,vps/mer/er,in,errjGlobal
Devps,Devps/Amer/Ser,Lin,SerDevpsGlobal
vps,vps/mer/er,in,ervpsGlobal

 

Please, somebody help me with this!

Thanks in advance.



1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Both Table 1 and Table 2 require Split Column in power query.

Table1:

vzhangti_0-1655794294517.png

vzhangti_2-1655795154157.png

tags = [tags.1]&","&[tags.2]&","&[tags.3]&[tags.4]&","&[tags.5]

vzhangti_3-1655795185630.png

 

Table2:

vzhangti_1-1655794444704.png

Delete the blank lines after the split. Establish a direct relationship between the 2 tables.

vzhangti_4-1655795419891.png

This gives you the output you expect.

vzhangti_5-1655795459061.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Both Table 1 and Table 2 require Split Column in power query.

Table1:

vzhangti_0-1655794294517.png

vzhangti_2-1655795154157.png

tags = [tags.1]&","&[tags.2]&","&[tags.3]&[tags.4]&","&[tags.5]

vzhangti_3-1655795185630.png

 

Table2:

vzhangti_1-1655794444704.png

Delete the blank lines after the split. Establish a direct relationship between the 2 tables.

vzhangti_4-1655795419891.png

This gives you the output you expect.

vzhangti_5-1655795459061.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mh2587
Super User
Super User

Like this ?Solution.PNG


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Anonymous
Not applicable

yes like this only

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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