Rules: copy many values to ONE specific value-

Post Reply
mnasra
Posts: 136
Joined: Tue Aug 10, 2010 5:40 pm
OLAP Product: Planning Analytics
Version: 2.0
Excel Version: EXCEL 2013

Rules: copy many values to ONE specific value-

Post by mnasra »

I need to write a rule as follows:
value,company 1 = value, company 2 or 3 or 4 .... whichever is NOT zero.

Can it be done?
Thanks
Thanks
Micheline
suhamore
Posts: 19
Joined: Fri Jan 22, 2010 3:07 pm
OLAP Product: Cognos TM1
Version: 9.1 SP4+ 9.4.1 FP3+ 9.5.2 FP1
Excel Version: 2003 + 2010

Re: Rules: copy many values to ONE specific value-

Post by suhamore »

I think you can use nested if statements in your rule.
User avatar
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: Rules: copy many values to ONE specific value-

Post by jim wood »

You could always use a consolidation to do it? You could also use TI to copy the data (use a relevant view as the source) if you don't need a real time relationship,

Jim.
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
User avatar
Michel Zijlema
Site Admin
Posts: 713
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: Rules: copy many values to ONE specific value-

Post by Michel Zijlema »

mnasra wrote:I need to write a rule as follows:
value,company 1 = value, company 2 or 3 or 4 .... whichever is NOT zero.

Can it be done?
Thanks
Jim's suggestion is a good option: have a consolidated element, f.i. 'Other companies', summing up Company 2, 3, 4, ... (but not Company 1) and have a rule like:
['value', 'Company 1'] = N: ['value', 'Other Companies'];

Depending on the specifics of your model another option could be to make Company 1 a consolidated element, summing up Company 2, 3, 4. In this case you don't need any rule.

Michel
mnasra
Posts: 136
Joined: Tue Aug 10, 2010 5:40 pm
OLAP Product: Planning Analytics
Version: 2.0
Excel Version: EXCEL 2013

Re: Rules: copy many values to ONE specific value-

Post by mnasra »

Thank you all- Unfortunately none of the suggestions helps 100%
1- The nested ifs are out of the question, because I have toooooo many companies and I dont know if some are going to be added in the future
2- TI is not an option, it should be live data
3- Cie 1 = Conso of all others is not an option, because cie 1 could have its own value
4- The only option I am going to explore is try to create consolidations of all other companies- Unfortunately, I am not sure that ONLY ONE of them will be different than zero- But I will definitly explore this.

By the way, I tried to see if the {cie2, cie3, cie4} work but it gives me syntax error.
THANK YOU ALL- If I cannot do it with option 4, I will have to rethink my dimensions.
Thanks
Micheline
User avatar
Martin Ryan
Site Admin
Posts: 2003
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: Rules: copy many values to ONE specific value-

Post by Martin Ryan »

I see you're on 9.5. Any chance of upgrading to 9.5.2? The new ConsolidatedMax function might help you.
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
mnasra
Posts: 136
Joined: Tue Aug 10, 2010 5:40 pm
OLAP Product: Planning Analytics
Version: 2.0
Excel Version: EXCEL 2013

Re: Rules: copy many values to ONE specific value-

Post by mnasra »

WOW- Thank you Martin,

I had seen the CONSOLIDATEDMAX very quickly and thought, and I will use it one day-
Yes, definitly this would work.
Thanks again
Thanks
Micheline
Post Reply