I have a long list of transaction data that contains many different vendor names. Some of the vendors have a unique name for each and every transaction (e.g. FedEx appends a portion of the tracking # to each vendor name for some reason, Jewel includes the store number, Dell uses DMI with a number sometimes, and Dell other times, etc. etc.).
I want to user PowerPivot to "normalize" some of these names so that it becomes easier to pull total spend and other data (e.g. just show me how much was spent with FedEx). The transaction data is source data, so I'm stuck with it as is.
What I want to do is create another table that says what I'm searching for in each vendor name and what it's normalized name should be. Anytime the phrase fedex appears in the vendor name (start, finish, in the middle, could be anywhere in that field) column in the source data, PowerPivot should know that's actually FedEx. I have no idea what this list of vendors to normalize is and it will probably change over time so it needs to be flexible and not have to update the formula each time.
I have no idea what the formula is then to link these together. I'm picturing a calculated field in the transactions table that:
1) Looks at the Transactions[VendorName] column
2) Searches it against the AutoName[SearchTerm] column
3) If it finds a match (they will not be exact matches) add the AutoName[NormalName] in the calculated field.
Table: Transactions
Vendor Name | Amount
FedEx 42351 | $15.24
FedEx 58563 | $12.11
Jewel #1231 | $89.12
DMI | $2003.24
Dell | $1254.52
Table: AutoName
SearchTerm | NormalName
fedex | FedEx
jewel | Jewel
dmi | Dell
dell | Dell
Table: Transactions w/ calculated column
Vendor Name | Normal Name | Amount
FedEx 42351 | FedEx | $15.24
FedEx 58563 | FedEx | $12.11
Jewel #1231 | Jewel | $89.12
DMI | Dell | $2003.24
Dell | Dell | $1254.52
Thoughts? Thanks for the help!
I want to user PowerPivot to "normalize" some of these names so that it becomes easier to pull total spend and other data (e.g. just show me how much was spent with FedEx). The transaction data is source data, so I'm stuck with it as is.
What I want to do is create another table that says what I'm searching for in each vendor name and what it's normalized name should be. Anytime the phrase fedex appears in the vendor name (start, finish, in the middle, could be anywhere in that field) column in the source data, PowerPivot should know that's actually FedEx. I have no idea what this list of vendors to normalize is and it will probably change over time so it needs to be flexible and not have to update the formula each time.
I have no idea what the formula is then to link these together. I'm picturing a calculated field in the transactions table that:
1) Looks at the Transactions[VendorName] column
2) Searches it against the AutoName[SearchTerm] column
3) If it finds a match (they will not be exact matches) add the AutoName[NormalName] in the calculated field.
Table: Transactions
Vendor Name | Amount
FedEx 42351 | $15.24
FedEx 58563 | $12.11
Jewel #1231 | $89.12
DMI | $2003.24
Dell | $1254.52
Table: AutoName
SearchTerm | NormalName
fedex | FedEx
jewel | Jewel
dmi | Dell
dell | Dell
Table: Transactions w/ calculated column
Vendor Name | Normal Name | Amount
FedEx 42351 | FedEx | $15.24
FedEx 58563 | FedEx | $12.11
Jewel #1231 | Jewel | $89.12
DMI | Dell | $2003.24
Dell | Dell | $1254.52
Thoughts? Thanks for the help!