MDX query not working

Post Reply
wigglyrat
Posts: 67
Joined: Wed Sep 02, 2015 3:09 pm
OLAP Product: TM1
Version: 10_2_2
Excel Version: 2010

MDX query not working

Post by wigglyrat »

Hi:

I am trying to write an MDX query that returns the lowest level elements of a dimension "zz Customers" with the syntax as follows:

Code: Select all

=TM1RPTROW($B$9,"DecisionSupportUAT:zz BDE","{TM1FILTERBYLEVEL({TM1SUBSETALL([zz Customers])},0)}
Is there a syntax issue here/can anyone please explain why this would not work?

Many thanks in advance.
Edward Stuart
Community Contributor
Posts: 248
Joined: Tue Nov 01, 2011 10:31 am
OLAP Product: TM1
Version: All
Excel Version: All
Location: Manchester
Contact:

Re: MDX query not working

Post by Edward Stuart »

TM1RPTROW from the Reference Guide link:

http://www-01.ibm.com/support/knowledge ... _tm1rptrow

What you can see is that you only need to name a Subset and therefore do not need the MDX code in the TM1RPTROW formula

This could then be broken out to a Data Validation list for your Top 10, Top 20 etc.. MDX subsets
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: MDX query not working

Post by tomok »

wigglyrat wrote:Hi:

I am trying to write an MDX query that returns the lowest level elements of a dimension "zz Customers" with the syntax as follows:

Code: Select all

=TM1RPTROW($B$9,"DecisionSupportUAT:zz BDE","{TM1FILTERBYLEVEL({TM1SUBSETALL([zz Customers])},0)}
Is there a syntax issue here/can anyone please explain why this would not work?

Many thanks in advance.
You're missing an ending quotation mark on the MDX string.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
gtonkin
MVP
Posts: 1265
Joined: Thu May 06, 2010 3:03 pm
OLAP Product: TM1
Version: Latest and greatest
Excel Version: Office 365 64-bit
Location: JHB, South Africa
Contact:

Re: MDX query not working

Post by gtonkin »

tomok wrote:You're missing an ending quotation mark on the MDX string.
-as well as the round bracket to terminate the function. Guessing this was a copy and paste issue as Excel would have given an error when you hit enter.

As Edward pointed out, you have MDX where a Subset should be specified. Use the FX button on the formula bar to see the possible parameters and their order.
BR, George.

Learn something new: MDX Views
Post Reply