Forum Discussion
Merge table using DAX and Create a calculated table
- 5 years ago
Hi siva_powerbi ,
The .pbix file you share cant be opened;
I use your sample data for instance:
First create a relationship between the 2 tables,
Then create a new table as below:
Table = ADDCOLUMNS('Table1',"Test 3",CALCULATE(MAX('Table2'[Test3]),USERELATIONSHIP(Table1[Test2],Table2[Test3])),"Test 4",CALCULATE(MAX('Table2'[Test4]),USERELATIONSHIP(Table1[Test2],Table2[Test3])))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
siva_powerbi , The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.
Dax, how to join, merge, etc you can refer: https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
Appreciate your Kudos.
@amitchandak Thanks for reply.
Attached files and data source file.
In Power Query file I was able to merge and create a calcualted table in DAX
In DAX though I have linked I am unable to get the calculated table with columns from both the tables,
I have added a simple example to sum the columns but y original calculation is more complex and need to merge 2 tables in DAX.
Please access files from below link as unable to add pbix files in forum.