Page 1 of 1

REST API: Subset - element level

Posted: Tue Mar 31, 2020 10:38 am
by Dimix
Hi

I have a dimension as so:
Capture.PNG
Capture.PNG (1.84 KiB) Viewed 1632 times
I have a subset containg two elements from different levels:
Capture1.PNG
Capture1.PNG (1.4 KiB) Viewed 1632 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 1632 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

Re: REST API: Subset - element level

Posted: Tue Mar 31, 2020 11:06 am
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.