Hi all,
Please bear with me as I am an Alteryx novice. I will do my best to explain what I am trying to do...
I have two excel spreadsheets (let's call one File A and the other File
. I am familiar with how to import each of them into alteryx. The two spreadsheets have some columns that are the same (columns like State, City, Business Unit #, etc.) but they also have some columns that are different. For example, the first dataset has fields like Revenue, Sales per square foot, etc. And the other spreadsheet has fields like Cost per capita, Construction costs projected, etc. You get the point.
Business Unit # is the best identifier for the two spreadsheets, because there is only one unique business unit # per row in each file. The key here is that File A has a lot of the same business unit #'s that File B has. So there is some overlap. That, however, is fine. Ultimately, File A is my anchor file...it's the one I really want to be working with because it has all the columns I need. File B will have a bunch of the same business unit #'s as File A, but it will also have some business unit #'s that are not present in File A.
So here is what I want to do... first, I want to bring over those rows from File B to File A where the business unit # does not exist in File A. In other words, if File B has a row with business unit # of 8675309, but File A does not have that business unit # anywhere, then I would like that row in File B to be brought over to File A (the row would just be added at the bottom). I thought I could easily accomplish this with a Union tool, but that's when I realized I would have issues since there are all these fields in File B that don't exist in File A, and vice versa. What can I do about this? The tricky part is that some of the fields are technically the same, but just named differently. For example, File B might have a field called "Total construction cost" in column H but File A would have technically the same field in column C that is called "Constructions costs - total". How do I get the one from File B to end up in the same column as it exists in File A?
ALSO, there are some fields in File B that I simply don't want to bring over into File A...how would I go about that? Hopefully I explained this well. If not, please let me know and I would be happy to attach the two raw files here.