Name of Cube in the Rule

Post Reply
EP_explorer
Regular Participant
Posts: 180
Joined: Sat Dec 04, 2010 2:35 pm
OLAP Product: PAL
Version: 2.0.9
Excel Version: 2016

Name of Cube in the Rule

Post by EP_explorer » Mon Nov 16, 2020 7:35 am

the Cube has the rule

Is it possible to found a name of current cube in the Rule?

User avatar
Elessar
Community Contributor
Posts: 213
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Location: Russia

Re: Name of Cube in the Rule

Post by Elessar » Mon Nov 16, 2020 7:41 am

Hi,

No.
Best regards, Alexander Dvoynev

User avatar
Steve Rowe
Site Admin
Posts: 2111
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: 10.2.2., PAW
Excel Version: Nearly all of them

Re: Name of Cube in the Rule

Post by Steve Rowe » Mon Nov 16, 2020 5:16 pm

If you explain why you would want to do this then maybe someone can propose a solution.

It is not something I've ever wanted to do other than for documentation purposes. i.e.

#This the rule sheet for Cube ABC, it does adding up.
Technical Director
www.infocat.co.uk

EP_explorer
Regular Participant
Posts: 180
Joined: Sat Dec 04, 2010 2:35 pm
OLAP Product: PAL
Version: 2.0.9
Excel Version: 2016

Re: Name of Cube in the Rule

Post by EP_explorer » Tue Nov 17, 2020 11:58 am

I.e. I have }Cubes dimension in the cube B
and I want to write feeder from Cube A to Cube B without writing name of cube in rule in Cube A explicitly but using calculated name of the cube

Wim Gielis
MVP
Posts: 2584
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.8
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Name of Cube in the Rule

Post by Wim Gielis » Tue Nov 17, 2020 12:10 pm

From the few things I can understand from the post above, I would say 'no'.
But then again, with a better explanation, we might be able to make sense out of it.
Best regards,

Wim Gielis

Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 117 TM1 articles and a lot of custom code
Newest blog article: Using TI to change elemant names, like Biden to Trump

declanr
MVP
Posts: 1676
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Name of Cube in the Rule

Post by declanr » Tue Nov 17, 2020 3:35 pm

EP_explorer wrote:
Tue Nov 17, 2020 11:58 am
I.e. I have }Cubes dimension in the cube B
and I want to write feeder from Cube A to Cube B without writing name of cube in rule in Cube A explicitly but using calculated name of the cube
I think you might be out of luck.

In "Cube B" you can obviously use !}Cubes notation to pull data from the source cube since you have the }cubes dimension. But in Cube A, I can't think of any way to automatically reference the name of the cube that your rule belongs to.

Its quite a niche requirement but I assume you are trying to put a pretty generic feeder into multiple cubes and want to automatically reference the cube you are in to save a bit of time. If that's the case I would expect that the time spent trying to think of ways to achieve it will exceed the 1 off tasks of writing out the cube names.
At least once your feeder is in place, the cube that you are feeding from won't change name overnight so it should be a 1 off task.
Declan Rodger

Post Reply