Wim Gielis wrote:
I'd be happy to stick an ATTRS function in there, only that, what if I don't know what alias was set?
We have no way to loop through the chosen subset elements unless we know what alias was chosen. (Inspecting the .sub file is not an option)
I agree that it's rather rare as a situation, but it is not impossible either.
I agree it's a bit of an annoying one but since it's always been this way I try to always do the following:
Create a 2-d cube "}a_dimension_properties" consisting of:
- }Dimensions (system gen'd or often use my own version which I replicate from the system generated dim via chore scheduled every night for various purposes)
- }a_dimension_properties_measures
n.b the "a" at the start is just so that it appears at the beginning to differentiate the } prefixed items I create vs the system ones.
Every time I create a new public subset I add it into my "}a_dimension_properties_measures" dim as "subset_<subset name>_alias" (string of course.)
Then at intersection I type in the alias that I saved the public subset down as using.
This can be retrieved for such purposes as the one you described here and I also tend to hold a lot of other information in the cube as opposed to just subset aliases, if you have a standard subset name for a number of dimensions (like "All (leaf)") then that's not a problem due to the cube structure.
It's obviously a little bit of extra work to maintain but once you get into the habit of doing it (and convince all other admins to do the same) it's only really a small extra step to creating your subset anyway.