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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
maddukuri451
New Member

Non equi join in power bi

Hi , 

 

we have below requirment to join based on prase and pattren like below.

 

 Table 1:  

Jobnames

 

L_secret_keys_exp

L_user_keys_ings

L_mars_loads_exp

L_audit_log_exp

 

Table 2:

col1

 

audit

secret

user

mars

 

 

O/p should be :

 

col1    | col2

 

audit | L_audit_log_exp

secret|L_secret_keys_exp

user|L_user_keys_ings

mars|L_mars_loads_exp

 

 

 

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @maddukuri451,

 

You could follow the steps below to get your output.

 

1. Edit the two tables in Query Editor and duplicate the jobname column, then Split Column.

split.PNG

 

2.Close and Apply.

 

3. Create a calculated column in Table 2 with the formula below.

 

Column = LOOKUPVALUE(Table1[jobname],Table1[jobname - Copy.2],'Table2'[col])

Then you will get the table you expected.

 

Capture.PNG

 

Hope this can help you!

 

Best Regards,

Cherry

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

Thank you very much for your reply , but my job name formate is changing like below, i dont have uniform formates for JobName

 

 

col1 col2  col1|col2
IDW_hdp_user_keys_exp emp  emp|hdp_emp_keys_exp
DW_hdp_vendor_keys_exp mar  mar|hdp_mars_keys_exp
hdp_customer_keys_exp june  june|hdp_june_keys_exp
hdp_emp_keys_exp user  user|hdp_user_keys_exp
YYY_hdp_01_mars_keys_exp customer  customer|hdp_customer_keys_exp
hdp_june_keys_exp vendor  vendor|hdp_vendor_keys_exp

 

Hope you got my issue, waiting for reply .. Thanks in Advance.

maddukuri451
New Member

Hello Team,

 

Need help to get below result.

 

Table 1 Table2  query o/p should be  
        
col1 col1  col1|col2
hdp_user_keys_exp emp  emp|hdp_emp_keys_exp
hdp_vendor_keys_exp mar  mar|hdp_mars_keys_exp
hdp_customer_keys_exp june  june|hdp_june_keys_exp
hdp_emp_keys_exp user  user|hdp_user_keys_exp
hdp_mars_keys_exp customer  customer|hdp_customer_keys_exp
hdp_june_keys_exp vendor  vendor|hdp_vendor_keys_exp

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.