Forum Discussion
Marico
Helper IV
1 year agoCombined 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.
Ashish_Mathur
Super User
1 year agoHi,
Your data tables has not been pasted properly in your original post - only the first one is clear.