Forum Discussion
Create Summarize table with DAX
- 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
In the data you give everything has the same date.
In your real data are the two table related on date column?
- Devesh4 years agoFrequent Visitor
Yes, they are related on date column. As we add data for next month, it should be filtered by date column.
- Anonymous4 years agoNot applicable
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