Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am new in PW BI,
Could you help me?
For exemple ( simple) I have 2 tables loading:
1.
| A | B |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
2.
| A | D |
| 2 | 5 |
| 3 | 6 |
| 4 | 7 |
I try to get tables 3 in script:
| A | C ( B and D) |
| 1 | 1 |
| 2 | 2 |
| 2 | 5 |
| 3 | 3 |
| 3 | 6 |
| 4 | 7 |
How can I get it?
Thanks!
Solved! Go to Solution.
You could either try PowerQuery or DAX, see below sample and attached pbix file.
let
SelectAndRenameColumnsFromTable1 = Table.RenameColumns(Table.SelectColumns(Table1,{"A","B"}),{"B","C"}),
SelectAndRenameColumnsFromTable2 = Table.RenameColumns(Table.SelectColumns(Table2,{"A","D"}),{"D","C"}),
CombineAboutTwo = Table.Combine({SelectAndRenameColumnsFromTable1,SelectAndRenameColumnsFromTable2})
in
CombineAboutTwo
combinedTableInDax =
UNION (
SELECTCOLUMNS ( Table1, "A", Table1[A], "C", Table1[B] ),
SELECTCOLUMNS ( Table2, "A", Table2[A], "C", Table2[D] )
)
You could either try PowerQuery or DAX, see below sample and attached pbix file.
let
SelectAndRenameColumnsFromTable1 = Table.RenameColumns(Table.SelectColumns(Table1,{"A","B"}),{"B","C"}),
SelectAndRenameColumnsFromTable2 = Table.RenameColumns(Table.SelectColumns(Table2,{"A","D"}),{"D","C"}),
CombineAboutTwo = Table.Combine({SelectAndRenameColumnsFromTable1,SelectAndRenameColumnsFromTable2})
in
CombineAboutTwo
combinedTableInDax =
UNION (
SELECTCOLUMNS ( Table1, "A", Table1[A], "C", Table1[B] ),
SELECTCOLUMNS ( Table2, "A", Table2[A], "C", Table2[D] )
)
Thanks,
But If I have in first table - 6 columns and in second table - 8
6 columns are similar.
Are there working for only two columns?
@madji wrote:
Thanks,
But If I have in first table - 6 columns and in second table - 8
6 columns are similar.
Are there working for only two columns?
You can just add more colulmns in the SELECT columns in my previous post.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |