Cube rule - Grey out Cells based on Conditions

Post Reply
Jburchill
Posts: 3
Joined: Thu Jul 12, 2018 6:46 pm
OLAP Product: Tm1
Version: 10.2.2
Excel Version: 2007

Cube rule - Grey out Cells based on Conditions

Post by Jburchill »

Hello, I'm trying to prevent users entering data into the wrong accounts. I want to do something like if Org is 800 then accounts that start with 8* are editable. Anything else would be greyed out/read only. And then something like if Org is 700 then accounts that start with 7* are editable. I'm not sure where this is done in TM1. I have been trying in the Cube Rules, but I am having no luck. Any help would be appreciated.

Thank you
Emixam
Regular Participant
Posts: 155
Joined: Tue May 21, 2019 3:33 pm
OLAP Product: TM1
Version: PA 2.0.x
Excel Version: 2016
Location: The Internet

Re: Cube rule - Grey out Cells based on Conditions

Post by Emixam »

What you are looking at is }CellSecurity.
Here's a useful link but there is a lot more: https://exploringtm1.com/cell-security- ... ete-guide/
Jburchill
Posts: 3
Joined: Thu Jul 12, 2018 6:46 pm
OLAP Product: Tm1
Version: 10.2.2
Excel Version: 2007

Re: Cube rule - Grey out Cells based on Conditions

Post by Jburchill »

I tried the code that was in the doc you sent. It failed when I tried to run it in a TI. I am assuming it is because there is a security cube already there. But the one there doesn't have the same dimensions, which I thought was weird.

Also, why wouldn't I put code in the rules of the cube? I see when Actuals come in, the past data. Those cells are greyed out. So I am trying to do the same, but with different logic.
Wim Gielis
MVP
Posts: 3222
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: Cube rule - Grey out Cells based on Conditions

Post by Wim Gielis »

The cell security cube can contain all dimensions of the base (application) cube but also less. Not every such dimension has to be part of the cell security cube.

Go and look for such a cube. You will find rules and then you can investigate / add lore rules.
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