Page 1 of 1

How to get rollup in MDX

Posted: Sun Sep 06, 2015 10:37 pm
by macsir
Hi, All

I want to get similar function as Rollup button in Subset Editor in MDX in Activeform to get the total of customized elements. Is that possible? :geek:

Re: How to get rollup in MDX

Posted: Mon Sep 07, 2015 6:19 am
by macsir
:?

Re: How to get rollup in MDX

Posted: Mon Sep 07, 2015 7:39 am
by declanr
There are a few ways to go about this including probably a LOT that I am unaware of.

For me the easiest way if you are using a named subset in the active form is to put an extra row in (that is not part of the active form so must reference the same TM1RPTView Statement) and uses the Subset Name as if it were an element name - this then automatically consolidates the data and still performs as if it were a standard TM1 Cube Cell where you can spread over it etc etc etc.

If you are not using a named subset I tend use an excel sum formula (you need to set the range to be below the active form range so that it will expand with it - plenty of other posts on here explaining how/why on that one.)
This will however not allow you to interact with it as per a TM1 cube cell.

Re: How to get rollup in MDX

Posted: Mon Sep 07, 2015 10:28 pm
by macsir
Thanks, declanr.
Yes, I agree with your two methods. I just wonder if there is any rollup function in MDX to achieve this directly or not.

Re: How to get rollup in MDX

Posted: Tue Sep 08, 2015 7:15 am
by AmbPin
Have you looked at the MDX Primer document that I am sure you will find quite easily on the interweb. It is an excellent reference.

Re: How to get rollup in MDX

Posted: Wed Sep 09, 2015 1:13 am
by macsir
AmbPin wrote:Have you looked at the MDX Primer document that I am sure you will find quite easily on the interweb. It is an excellent reference.
Hi, AmbPin. Yes, I have googled almost all possible MDX documents in TM1 including this one but can't find anything useful.