Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 3 tables, each with 3 "user" columns
Employee | Buddy | Manager |
Alex | Barry | Claire |
Employee | Team Lead | Manager |
Francis | Alex | Claire |
Employee | Supervisor | Department Manager |
Clair | Patrick | Sophie |
I want a new table that has ALL the users that are present in those 3 tables in any way.
User |
Alex |
Barry |
Claire |
Francis |
Patrick |
Sophie |
I don't know where to begin. Can someone help please?
Solved! Go to Solution.
Never mind, I got it!
I know there's a shorter way to write this but this is way less brain-taxing to read.
let
User1 = Table1[User_Employee],
User2 = Table1[User_Buddy],
User3 = Table1[User_Manager],
User4 = Table2[User_Employee],
User5 = Table2[User_TeamLead],
User6 = Table2[User_Manager],
User7 = Table3[User_Employee],
User8 = Table3[User_Supervisor],
User9 = Table3[User_DeptManager],
AllUsersList = List.Combine({ User1,User2,User3,User4,User5,User6,User7,User8,User9}),
AllUsers = Table.FromList(AllUsersList),
#"Removed Blank Rows" = Table.SelectRows(AllUsers, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
#"Removed Duplicates" = Table.Distinct(#"Removed Blank Rows")
in
#"Removed Duplicates"
Never mind, I got it!
I know there's a shorter way to write this but this is way less brain-taxing to read.
let
User1 = Table1[User_Employee],
User2 = Table1[User_Buddy],
User3 = Table1[User_Manager],
User4 = Table2[User_Employee],
User5 = Table2[User_TeamLead],
User6 = Table2[User_Manager],
User7 = Table3[User_Employee],
User8 = Table3[User_Supervisor],
User9 = Table3[User_DeptManager],
AllUsersList = List.Combine({ User1,User2,User3,User4,User5,User6,User7,User8,User9}),
AllUsers = Table.FromList(AllUsersList),
#"Removed Blank Rows" = Table.SelectRows(AllUsers, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
#"Removed Duplicates" = Table.Distinct(#"Removed Blank Rows")
in
#"Removed Duplicates"
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
7 | |
6 | |
6 |