Forum Discussion
Marico
Helper IV
2 years 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...
- Anonymous2 years 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
Helper IV
2 years agodharmendars007 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
Helper IV
2 years agolbendlin Greg_Deckler Ritaf1983 rajendraongole1 parry2k Any thoughts on above?
- lbendlin2 years ago
Super User
Your desired output doesn't seem to make sense. What would you change on the below (which was done without coding)