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
dharmendars007 I am not able to create the matrix like the below from output of summarize table:
Could you please share a sample file? Thanks a lot in advance.
Marico
1 year agoHelper IV
lbendlin Greg_Deckler Ritaf1983 rajendraongole1 parry2k Any thoughts on above?
- lbendlin1 year agoSuper User
Your desired output doesn't seem to make sense. What would you change on the below (which was done without coding)