El Cid
Member
- Joined
- Aug 22, 2016
- Messages
- 52
- Reaction score
- 0
- Points
- 6
- Location
- Greenville, SC
- Excel Version(s)
- Excel 2016
I'm trying to use a table named tblSection267 with a list of names under the column heading DELETEnames to remove names listed rows in the column named "Source Name" in the another table (named #"Append Payrolls") and I can't seem the get the syntax right. Here's the my code I've tried. I've commented out the offending line of code and left the one that works below it, but would prefer to pull the names from the tblSection267 table that is a separate query:
let
Source = tblPayroll01,
#"Append Payrolls" = try Table.Combine({tblPayroll01, tblPayroll02}) otherwise Source,
// #"Filtered Rows" = Table.RemoveMatchingRows(#"Append Payrolls", Table.ToRows (tblSection267 [DELETEnames]),[Source Name]),
// #"Filtered Rows" = Table.RemoveMatchingRows(#"Append Payrolls", Table.ToList(tblSection267[DELETEnames], Combiner.CombineTextByDelimiter(",")),[Source Name]),
#"Filtered Rows" = Table.SelectRows(#"Append Payrolls", each ([Source Name] <> "BUGGS BUNNY" and [Source Name] <> "DONALD DUCK" and [Source Name] <> "MICKY MOUSE")),
let
Source = tblPayroll01,
#"Append Payrolls" = try Table.Combine({tblPayroll01, tblPayroll02}) otherwise Source,
// #"Filtered Rows" = Table.RemoveMatchingRows(#"Append Payrolls", Table.ToRows (tblSection267 [DELETEnames]),[Source Name]),
// #"Filtered Rows" = Table.RemoveMatchingRows(#"Append Payrolls", Table.ToList(tblSection267[DELETEnames], Combiner.CombineTextByDelimiter(",")),[Source Name]),
#"Filtered Rows" = Table.SelectRows(#"Append Payrolls", each ([Source Name] <> "BUGGS BUNNY" and [Source Name] <> "DONALD DUCK" and [Source Name] <> "MICKY MOUSE")),