REST API: Subset - element level

Post Reply
Dimix
Posts: 32
Joined: Fri Jan 15, 2016 2:53 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

REST API: Subset - element level

Post by Dimix »

Hi

I have a dimension as so:
Capture.PNG
Capture.PNG (1.84 KiB) Viewed 1628 times
I have a subset containg two elements from different levels:
Capture1.PNG
Capture1.PNG (1.4 KiB) Viewed 1628 times
If I now use this expression to read the subset via REST:
api/v1/Dimensions('TEST')/Hierarchies('TEST')/Subsets('Default')/Elements

...I get this:
Capture2.PNG
Capture2.PNG (17.95 KiB) Viewed 1628 times
'Level' is the level within the dimension, not the level within the subset. How can I retrieve the element level within the subset? Possible?

/R
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: REST API: Subset - element level

Post by tomok »

Dimix wrote: Tue Mar 31, 2020 10:38 am 'Level' is the level within the dimension, not the level within the subset. How can I retrieve the element level within the subset? Possible?
You can't get the "level" of an element WRT a subset because the concept does not exist. Subsets are merely a collection of specific elements. They don't have a hierarchy, only dimensions do.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply