Subsetexists in tm1web

Post Reply
maps
Posts: 43
Joined: Wed Aug 10, 2011 9:21 am
OLAP Product: TM1
Version: 9.4.1 and 9.5.1
Excel Version: 2003

Subsetexists in tm1web

Post by maps »

Dear All,

Tm1 10.1
Tm1 web

I need to solution for TM1WEB to check if a subset exists for a Dimension. I like to set a default subset for a SUBNM based on the outcome of a check. The name of the subset is concatenated based on some excel cells.

Here an example:

Cell A1: Spain
Cell A2: ProductsA
Cell A3: = "}"& A1 & A2 // would contain "}SpainProductsA
Cell A4: ="DefaultProducts"
Cell A5: IF(SUBSETEXISTS('Products', A3), A3, A4) // if subset }SpainProductsA exists use it, otherwise use the default one.

//SUBSETEXISTS doesn't exist in Web

SUBNM(....,A5,...)

So I need a way to find out if an subset exists via web. I checked SUBSIZ which unfortunately doesn't work in web. I could also create in a hidden sheet an active form based on a subset an check somehow if it was build but this is for me away overhead and costs performance.

Any easy way to fix this?
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Subsetexists in tm1web

Post by Wim Gielis »

Hi

Untested, but you could try to do a SUBNM to retrieve the element at index 1. If it comes up as blank, the subset will not exist (or does not contain any elment to which the user has access)

If that SUBNM is in, say, cell A1:

=A1=""

will test if the SUBNM returns anything meaningful. Or, a nicer alternative, do a DIMIX check on the result of that SUBNM formula in cell A1. If DIMIX = 0 ==> error, if DIMIX > 0 ==> valid element/subset.

Again, untested :-)
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
maps
Posts: 43
Joined: Wed Aug 10, 2011 9:21 am
OLAP Product: TM1
Version: 9.4.1 and 9.5.1
Excel Version: 2003

Re: Subsetexists in tm1web

Post by maps »

Works. thanks.
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Subsetexists in tm1web

Post by Wim Gielis »

Just a question, does the SUBSIZ function work on TM1Web? Because it should and for me, it does. TM1 10.2.1
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply