Using rule to navigate a dimension

Post Reply
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Using rule to navigate a dimension

Post by lynnsong986 »

Hello,

I have a rule like this:

[‘2020’,’number of customers at start of period’]=[‘2019-12’,’number of customers at end of period’];

And so on and so forth for all years

Where the time dimension is like this:
2019-01
2019-02
2019-03
.
.
.
2019-12
2019 (consolidated element)
2020-01
2020-02
.
.
.
2020-12
2020(consolidated)
Is there a generic function I can use so that I don’t need to hard code 2020 and 2019-12? I know I could add an attribute to consolidated years with that month and use attrs to pull it, is there a better way of doing this such that all C level cells in time dimension would be equal to the last child of the previous C level element?

Thanks
Wim Gielis
MVP
Posts: 3234
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: Using rule to navigate a dimension

Post by Wim Gielis »

No, use a Text attribute for this.
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
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: Using rule to navigate a dimension

Post by lynnsong986 »

Great thanks for letting me know!
Post Reply