Anyone know how I feed this formula?
['Actual', 'Flag', 'SERITD'] = N: IF(SUBST(!Employee,1, 3) @= 'OUT', 1, Continue);
Feeder - for substring in a formula
-
- Posts: 16
- Joined: Mon Jan 09, 2012 1:59 pm
- OLAP Product: Tm1
- Version: 10.1
- Excel Version: XP
- 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: Feeder - for substring in a formula
You'll have to over feed as there's no direct feeder to use.
What's something that an "Out" employee will always have. Perhaps a salary? Or a pension? Use that to feed it. E.g.
['Salary', 'Actual', 'Flag'] => ['SERITD'];
I'm pretty sure that won't be directly usable, but it should give you an idea of what you might be able to use as a surrogate feeder.
Martin
What's something that an "Out" employee will always have. Perhaps a salary? Or a pension? Use that to feed it. E.g.
['Salary', 'Actual', 'Flag'] => ['SERITD'];
I'm pretty sure that won't be directly usable, but it should give you an idea of what you might be able to use as a surrogate feeder.
Martin
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
Jodi Ryan Family Lawyer
-
- Posts: 16
- Joined: Mon Jan 09, 2012 1:59 pm
- OLAP Product: Tm1
- Version: 10.1
- Excel Version: XP
Re: Feeder - for substring in a formula
Unfortunately there is no other data for them.
They are outsourced contractors that I need to assign their printing costs to based on their access cards.
Effectively I want to take all employees that have the id of OUT* and put a 1 in the 'flag', so that I can assign their costs to the IT dept.
My other alternative is to do it within the Ti process, but the formula does actually work well (apart from the feeding?!!)
They are outsourced contractors that I need to assign their printing costs to based on their access cards.
Effectively I want to take all employees that have the id of OUT* and put a 1 in the 'flag', so that I can assign their costs to the IT dept.
My other alternative is to do it within the Ti process, but the formula does actually work well (apart from the feeding?!!)
-
- 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: Feeder - for substring in a formula
Why do you need to feed? If this is just a flag to know whether to calculate a value later in the rules it is not necessary, unless you need to consolidate the value of SERITD.nickykoller wrote:Anyone know how I feed this formula?
['Actual', 'Flag', 'SERITD'] = N: IF(SUBST(!Employee,1, 3) @= 'OUT', 1, Continue);
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: Feeder - for substring in a formula
I'd likely opt for TI as the flag isn't going to change. I'm making a few assumptions but you might think about using an attribute on the Employees dimension rather than a measure in the cube. If you're building the dimension via TI anyway, it's trivial to populate the attribute as you go.nickykoller wrote: My other alternative is to do it within the Ti process, but the formula does actually work well (apart from the feeding?!!)
Back to your original question, in some cases you can feed more tightly using a conditional feeder:
['Salary', 'Actual', 'Flag'] => DB(If(SUBST(!Employee,1, 3) @= 'OUT', 'Cube Name', ''), !dim1, !dim2, ...);
You still need something like 'Salary' to feed from though and there's a performance/complexity trade off. It's really not much use here but can come in handy.