Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Is it possible to combine 2 different tables where table 1 has 5 columns and table 2 has 7 columns using DAX? 4 columns in each of the table have the same column. It should be like the table has been appended with DAX formula.
Solved! Go to Solution.
Hi @Anonymous
For the Table with lesser columns you can use ADDColumns to addmissing columns as blank().
Then you can use a UNION function to combine the 2 tables
Something like this
CombinedTable = Union(Table1,ADDCOLUMNS(Table2,"MissingColumnName",BLANK()))
Hi @Anonymous
For the Table with lesser columns you can use ADDColumns to addmissing columns as blank().
Then you can use a UNION function to combine the 2 tables
Something like this
CombinedTable = Union(Table1,ADDCOLUMNS(Table2,"MissingColumnName",BLANK()))
@Anonymous
Union function just requires same number of columns
Columns are combined by position in their respective tables.
Same Names are not necessary
I was able to combine the tables but it took out the blank rows which were required.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
95 | |
69 | |
44 | |
38 | |
30 |
User | Count |
---|---|
157 | |
101 | |
60 | |
42 | |
40 |