Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31099

Merge Tables with Wildcards

$
0
0

Hey all! Hope you are well.

 

I have a table with supplier's company name and another one with transactions.  The company names have wildcards for the processes that are being recorded on the transaction table. My wish is to have a merged query, that replaces the wildcard from Company for any other possible value. Is there a way I can achieve this?

 

Company Table

 

Company NameLocation
companyname1_*USA
companyname2_*Croatia
company_*_name3_*Phillipines
companyname4Brazil
companyname5_*USA

 

Transactions Table

 

TransactionQuantity
companyname1_sell123
companyname2_sell123
companyname1_sell_brazil1
company_microsoft_name3_bought123
companyname41111
companyname8_bought1447

 

Desired Output

LocationTransactionQuantity
USAcompanyname1_sell123
USAcompanyname1_sell_brazil1
Croatiacompanyname2_sell123
Phillipinescompany_microsoft_name3_bought123
Brazilcompanyname41111


Many thanks in advance for your assistance on this topic!

 


Viewing all articles
Browse latest Browse all 31099

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>