Hi Everyone,
I’m trying to build a simple selection matrix where the possible options should be limited after the first and each selection.
This means that if someone selects the action A1, then this option should not be available for further selection in any other dimension element.
The attached picture demonstrates it in more clear way.
In this example we have risks and we are selecting actions for the risks. If an action is selected for Priority1 it should not be available for any other Risk or Priority.
I tried to do this limitation using few rules but I'm stopping always on the last step where a loop occurs.
I analyzed it and it is somehow understandable because I’m changing the input data, but I thought always that TM1 is not looping twice over a point in cube if it was already processed in the rule.
Do you have maybe an idea or hint how could I solve this problem?
Many thanks in advance
Selection option limitation problem
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Selection option limitation problem
Try using a picklist and put rules on the picklist. I've used this to limit country selections based on regions in the past,
Jim.
Edit: Here is the code I used in the mentioned rstriction above. I hope that helps:
Jim.
Edit: Here is the code I used in the mentioned rstriction above. I hope that helps:
Code: Select all
['Decision Location'] = S: ('static:HQ:Local: :') ;
['Decision Country'] = S:
IF(DB('cube',!dim1,!dim2,!dim3,!dim4,!dim5,'Decision Location') @= 'Local'
,('subset:ibie_country:Level0')
,('static: :')
);
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Selection option limitation problem
Your problem is that what you are trying to accomplish is like a circular reference in Excel. You want Prio1 to be open only when Prio2 and Prio3 are empty, Prio2 to be open only when Prio1 and Prio3 are empty and Prio3 to be open when Prio1 and Prio2 are empty. The combination of those conditions results in a circular reference and that is not valid in a TM1 rule. I don't have any ideas for you except to recommend you abandon the idea.TomaszB wrote:I analyzed it and it is somehow understandable because I’m changing the input data, but I thought always that TM1 is not looping twice over a point in cube if it was already processed in the rule.
-
- Posts: 20
- Joined: Thu Mar 21, 2013 9:00 am
- OLAP Product: PA/TM1
- Version: all Versions
- Excel Version: all Versions
Re: Selection option limitation problem
Thanks you very much Jim!!! That is the perfect solution for my. It is working very good. I spend so much time on it and had not this very simple and good solution.jim wood wrote:Try using a picklist and put rules on the picklist. I've used this to limit country selections based on regions in the past,
Jim.

Yes tomok you are right. The graying out could look good but it is probably not possible to build it. I will use Jim's solution.tomok wrote: Your problem is that what you are trying to accomplish is like a circular reference in Excel. You want Prio1 to be open only when Prio2 and Prio3 are empty, Prio2 to be open only when Prio1 and Prio3 are empty and Prio3 to be open when Prio1 and Prio2 are empty. The combination of those conditions results in a circular reference and that is not valid in a TM1 rule. I don't have any ideas for you except to recommend you abandon the idea.
Thank you all for the prompt answers.