Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi there,
I'm seeking your help on how we can creating a new column that combines value from multiple columns from different tables.
In particular, I have at least 2 tables, for example
Table 1:
Customer Name | ID | DOB
A
B
C
Table 2:
Customer Name | ID | Address
A
B
E
F
Expected result: I wanna have the list of unique Customer name from Table 1, Table 2 as well as other tables as below
Customer Name
A
B
C
E
F
Thank you for your help!
Solved! Go to Solution.
Hello @duycao
You can create a calcualted table that give you the unique list from both tables like so.
Combined Table =
DISTINCT(
UNION(
DISTINCT(Table1[Customer Name]),
DISTINCT(Table2[Customer Name])
)
)
You can continue to add the additional source tables in this one calculation.
Combined Table =
DISTINCT(
UNION(
DISTINCT(Table1[Customer Name]),
DISTINCT(Table2[Customer Name]),
DISTINCT(Table3[Customer Name]),
DISTINCT(Table4[Customer Name]),
DISTINCT(Table5[Customer Name])
)
)
Hello @duycao
You can create a calcualted table that give you the unique list from both tables like so.
Combined Table =
DISTINCT(
UNION(
DISTINCT(Table1[Customer Name]),
DISTINCT(Table2[Customer Name])
)
)
You can continue to add the additional source tables in this one calculation.
Combined Table =
DISTINCT(
UNION(
DISTINCT(Table1[Customer Name]),
DISTINCT(Table2[Customer Name]),
DISTINCT(Table3[Customer Name]),
DISTINCT(Table4[Customer Name]),
DISTINCT(Table5[Customer Name])
)
)
Hi there, this works perfectly. Thank you!
Hi @duycao ,
If your problem has been resolved, could you please mark the helpful post as Answered? It will help anyone in the community find the solution easily if they face the same problem with you. Thank you.
Best Regards
Rena
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |