Forum Discussion
Marico
1 year agoHelper IV
Combined Matrix
Hi - My sample data looks like the following: Sales Internal/ External Category Flag 10 Internal Cat1 Flag 1 20 External Cat1 Flag 1 30 Internal Cat2 Flag 1 40 Externa...
- Anonymous1 year ago
Hi Marico ,
The following virtual table can be created with the help of the NATURALINNERJOIN function:
FlagTable = SUMMARIZE( 'SalesData', 'SalesData'[Category], 'SalesData'[Flag], 'SalesData'[Internal/ External], "SalesAmount", SUM('SalesData'[Sales]) )TotalSalesTable = SUMMARIZE( 'SalesData', 'SalesData'[Category], 'SalesData'[Internal/ External], "TotalSales", SUM('SalesData'[Sales]) )FinalOutputTable = NATURALINNERJOIN( SUMMARIZE( 'SalesData', 'SalesData'[Category], 'SalesData'[Internal/ External], "TotalSales", SUM('SalesData'[Sales]) ), SUMMARIZE( 'SalesData', 'SalesData'[Category], 'SalesData'[Flag], 'SalesData'[Internal/ External], "FlagSales", SUM('SalesData'[Sales]) ) )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Marico
1 year agoHelper IV
Hi dharmendars007 - Sorry, I am new to Power BI, all these calculations so would be created through a "New Table measure"? Alos, can't we directly create the final table using summarize?