Purplehazed
New Member
- Joined
- Jul 7, 2014
- Messages
- 13
I import banking data into Power Query (PQ).
One column shows the vendor in a messy string,
example 1) 0000123456 HomeDepot xyzHD store 1234.
example 2) 1234000000 Lowes xyzstoreHBG12
I've been adding a conditional column in PQ that says, if column x contains HomeDept then insert "Home Improvement" in the new column.
If column x contains Lowes then insert "Home Improvement" in the new column.
The conditional column list is has gotten very long... There has to be a way to tell PQ to iterate an external source (an imported table) and search for words in a list and create/add to a conditional column
with having to go through the clunky method I described above...
What is the better way?
Thanks!
One column shows the vendor in a messy string,
example 1) 0000123456 HomeDepot xyzHD store 1234.
example 2) 1234000000 Lowes xyzstoreHBG12
I've been adding a conditional column in PQ that says, if column x contains HomeDept then insert "Home Improvement" in the new column.
If column x contains Lowes then insert "Home Improvement" in the new column.
The conditional column list is has gotten very long... There has to be a way to tell PQ to iterate an external source (an imported table) and search for words in a list and create/add to a conditional column
with having to go through the clunky method I described above...
What is the better way?
Thanks!