How to get rollup in MDX

Post Reply
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

How to get rollup in MDX

Post 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:
Attachments
2015-09-07 08_35_22-  [Private]_.png
2015-09-07 08_35_22- [Private]_.png (16.85 KiB) Viewed 5028 times
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: How to get rollup in MDX

Post by macsir »

:?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: How to get rollup in MDX

Post 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.
Declan Rodger
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: How to get rollup in MDX

Post 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.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: How to get rollup in MDX

Post 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.
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: How to get rollup in MDX

Post 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.
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
Post Reply