Forum Discussion
thekeyjh
3 years agoRegular Visitor
Comparing Single Column in Two Tables
I'm new to PowerBI and I have two tables that I am trying to compare named WorkDay and PCPros. Each table has a column titled EmployeeID. I am trying to display all the rows in PCPros where there is...
- 3 years ago
M Code
NewStep=let a=Table.Buffer(Table.Group(WorkDay,"EmployeeID",{"n",each 1})) in Table.SelectRows(PCPros,each a{[EmployeeID=[EmployeeID]]}?<>null)
wdx223_Daniel
3 years agoCommunity Champion
M Code
NewStep=let a=Table.Buffer(Table.Group(WorkDay,"EmployeeID",{"n",each 1})) in Table.SelectRows(PCPros,each a{[EmployeeID=[EmployeeID]]}?<>null)
thekeyjh
3 years agoRegular Visitor
That works! Thank you!
How do I change the query to pull only the EmployeeIDs that don't match?
- wdx223_Daniel3 years agoCommunity Champion
NewStep=let a=Table.Buffer(Table.Group(WorkDay,"EmployeeID",{"n",each 1})) in Table.SelectRows(PCPros,each a{[EmployeeID=[EmployeeID]]}?=null)
- thekeyjh3 years agoRegular Visitor
Thank you!