Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to create a new table and merge two other tables into this one.
One table contains invoiced information and the other table has current order information.
There are some columns that should be merged into the same column as "Customer name", "Item id", "Description" and so on but there are also different information that must go in seperate colums as "Sold qty", Invoiced qty" and so on.
Solved! Go to Solution.
You can create your customer table using DAX expression, as an example below.
Customers =
DISTINCT(
UNION(
ALLNOBLANKROW( orders[CustomerKey], orders[Name] ),
ALLNOBLANKROW( invoices[CustomerKey], invoices[Name] )
)
)
Or use Power Query
Are you sure, that you want to merge these tables?
There could be a situation where you have two or more invoices per order and vice versa, this situation would potentially create duplicate values.
Would it not be easier to keep these tables separate and create dimension tables ( customers, Items ) with relationships to both Invoice and order tables
Hi @Mariusz
That is one way to do it.
Unfortunately I don't have a table with customer id.
There might be situations where I have customers with open orders and no invoices so they will not be in the invoice table.
I would like to be able to have a matrix with invoiced & current orders for the customer and also be able to look into each product.
/Sebastian
You can create your customer table using DAX expression, as an example below.
Customers =
DISTINCT(
UNION(
ALLNOBLANKROW( orders[CustomerKey], orders[Name] ),
ALLNOBLANKROW( invoices[CustomerKey], invoices[Name] )
)
)
Or use Power Query
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |