Insert Column from another table where certain optional criteria is met.

berian

New Member
Joined
Jul 8, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello all!

Hope you're all doing well.

I've recently started using Power Query in Excel to pull in data from my ODBC connection, but I'm a little stuck on how I would implement a report I am trying to create and was wondering if the awesome people here would be able to point me in the right direction!

I have a query that pulls Stock Information like below:

Stock CodeGroupTypeCategory
CAPXSQU12RLICXS
CAPZSQU13RLICZS
CARSWE69ICLECO
CARSWE74ICLECO
CARSWE91ICLECO
CASACR4MMSPMNEO
CASACRMMNSPNNEO
CDAPSAEDG111LANFENDEP
CDAPSAEDG111LANFENDEO

I want to add a column to this table which includes 'Stock Alerts' - these alerts will be held in another table where a user can enter a Stock Code, Group, Type and Category along with a message pertaining to those stock items.

E.G.:

Stock CodeGroupTypeCategoryStock Alert
CDAPSAEDG111Check colour is 'black' not 'black ash'
RLIAll Products in 'RLI' group have a 10% discount
RLICZSThere is currently a 5 day wait on RLI/CZS Products
DEPFree Delivery on any products in 'DEP' Category

I'm struggling to find a way to match these especially as some lines will have more relevancy than others.

Hopefully I've made what I'm trying to achieve clear!

I understand that this forum isn't a 'do this for me' kind of forum, but if anyone has any pointers or tips, it would be really appreciated. I have tried searching for how to do this, but I've also struggled to find any information!



Kind regards,
B
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,970
Messages
6,175,702
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top