Forum Discussion
swe_sebastian
6 years agoRegular Visitor
Create new table with information from two other tables
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 shou...
- 6 years ago
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
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
swe_sebastian
6 years agoRegular Visitor
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
Mariusz
Community Champion
6 years ago
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
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.