Subtotals with MDX and Dynamic Subsets
Posted: Mon May 07, 2012 1:32 am
Good morning/afternoon TM1 gurus,
I am working with dynamic subsets and MDX in active forms, so far I’ve created a simple report to show the top 10 debtors of an AR cube sorted by the total overdue amount and excluding an specific customer called “Legal”.
{ EXCEPT(
{ORDER(
{ TOPCOUNT(
{ [Customer].[All Customers].Children} ,10, [AR].([AR measures].[Total OVERDUE]) ) } ,
[AR].([AR measures].[Total OVERDUE]) , DESC) } ,
{ [Customer].[Legal] } ) }
The MDX works perfectly as well as the dynamic subset when browsing the cube. Now what I need to include are 2 things but I’m not sure if it’s possible or how to do it:
1- Include a subtotal of the top 10 at the bottom of the list (kind of a rollup).
2- Get the total for all customers less the top 10 subtotal and show it as “other”.
See attached example…
I could do this manually in the active form however I’d like to fully automate it, Can this be done in the cube viewer and then save if as a view….
Your help will be greatly appreciated…
I am working with dynamic subsets and MDX in active forms, so far I’ve created a simple report to show the top 10 debtors of an AR cube sorted by the total overdue amount and excluding an specific customer called “Legal”.
{ EXCEPT(
{ORDER(
{ TOPCOUNT(
{ [Customer].[All Customers].Children} ,10, [AR].([AR measures].[Total OVERDUE]) ) } ,
[AR].([AR measures].[Total OVERDUE]) , DESC) } ,
{ [Customer].[Legal] } ) }
The MDX works perfectly as well as the dynamic subset when browsing the cube. Now what I need to include are 2 things but I’m not sure if it’s possible or how to do it:
1- Include a subtotal of the top 10 at the bottom of the list (kind of a rollup).
2- Get the total for all customers less the top 10 subtotal and show it as “other”.
See attached example…
I could do this manually in the active form however I’d like to fully automate it, Can this be done in the cube viewer and then save if as a view….
Your help will be greatly appreciated…