Forum Discussion
Devesh
4 years agoFrequent Visitor
Create Summarize table with DAX
Hello All, I want to create a calculated table using 2 existing tables in Power BI. 1st table: name percentage date a 20% 01-10-2021 b 30% 01-10-2021 c 40% 01-10-2021 d ...
- Anonymous4 years ago
Hi Devesh,
I created a sample pbix file(see attachment), please check whether that is what you want. First, Please create the relationship for Table1 and Table2 base on date fields...
Create relationship base on date fields
1. If you want to get a summarized table, you can create a calculated table with following DAX formula:
Output = SUMMARIZECOLUMNS ( 'Table1'[name], 'Table2'[category], 'Table1'[date], "amount", SUM ( 'Table1'[percentage] ) * SUM ( 'Table2'[amount] ) )2. If you just want to display as a table visual, you can simply create a measure as below.
NAmount = SUM('Table1'[percentage])*SUM('Table2'[amount])Best Regards
bcdobbs
4 years agoCommunity Champion
In the data you give everything has the same date.
In your real data are the two table related on date column?