Feeder Match based on string input
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Feeder Match based on string input
Im having trouble getting feeders to work correctly in this scenario so Im hoping someone has some information around when feeders are fired.
I have a cube that has a static dimension with lines 1-10 and the time dimension (Jan-Dec) which has also has an extra line for the string input.
IE(string item, Jan, Feb, Mar, Apr, May, etc.)
In another cube I have a dimension that has values in it that may correspond to what a user types into the string item in the first cube.
My feeders should feed from the input cube over to the other cube based if there is a matching string input to the dimension item.
When I first write the feeder it works for existing string inputs. The problem is when another string is input and values are entered the feeder doesn't appear to re-fire and the target cube shows the values as not fed. A trace feeders on the original cube however shows that it is feeding the target cube.
In Cognos Planning this was considered a virtual dimension but due to the length of the dimension I don't want to use a picklist.
Thanks for any help
I have a cube that has a static dimension with lines 1-10 and the time dimension (Jan-Dec) which has also has an extra line for the string input.
IE(string item, Jan, Feb, Mar, Apr, May, etc.)
In another cube I have a dimension that has values in it that may correspond to what a user types into the string item in the first cube.
My feeders should feed from the input cube over to the other cube based if there is a matching string input to the dimension item.
When I first write the feeder it works for existing string inputs. The problem is when another string is input and values are entered the feeder doesn't appear to re-fire and the target cube shows the values as not fed. A trace feeders on the original cube however shows that it is feeding the target cube.
In Cognos Planning this was considered a virtual dimension but due to the length of the dimension I don't want to use a picklist.
Thanks for any help
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Feeder Match based on string input
Feeders are fired at these times
- when the server is started
- when a rule is saved
- when the user types in a piece of data that is used to feed another cell
- when you use the TI command "ProcessFeeders"
Number three could be expected to work on your scenario except that it only applies when a number on the left hand side of the feeder is updated. E.g. For the feeder statement ['Qty'] => ['Sales']; the feeder will fire when you type in a number against Qty.
In your example you have a feeder like ['Qty'] => DB('MyCube', !Dim1, !Dim2, db('LookupCube', !Dim1, 'StrValue'), 'Sales'); This feeder will still only automatically fire when the Qty field is updated. It will not fire when the 'StrValue' field is updated.
Hope that clears things up a little bit. As far as solving your problem is concerned you may have to periodically run a TI process that runs "ProcessFeeders". Or alternatively use the string that is being typed in as the source (i.e. left hand side) of the feeder. Though I expect this will lead to overfeeding.
Martin
- when the server is started
- when a rule is saved
- when the user types in a piece of data that is used to feed another cell
- when you use the TI command "ProcessFeeders"
Number three could be expected to work on your scenario except that it only applies when a number on the left hand side of the feeder is updated. E.g. For the feeder statement ['Qty'] => ['Sales']; the feeder will fire when you type in a number against Qty.
In your example you have a feeder like ['Qty'] => DB('MyCube', !Dim1, !Dim2, db('LookupCube', !Dim1, 'StrValue'), 'Sales'); This feeder will still only automatically fire when the Qty field is updated. It will not fire when the 'StrValue' field is updated.
Hope that clears things up a little bit. As far as solving your problem is concerned you may have to periodically run a TI process that runs "ProcessFeeders". Or alternatively use the string that is being typed in as the source (i.e. left hand side) of the feeder. Though I expect this will lead to overfeeding.
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
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Feeder Match based on string input
Hi Martin,
Actually the only time I want the feeder to fire is when data is entered. There isn't really a need to fire it when the string is entered (Except for if it is changed from one to another. Ill work on this one separate.
The issue I have now is that using the same method you show in your post it appears that the feeder is only being evaluated when I save the rule. The second I unload the cube and try to enter a new string value nothing happens.
Any ideas?
Actually the only time I want the feeder to fire is when data is entered. There isn't really a need to fire it when the string is entered (Except for if it is changed from one to another. Ill work on this one separate.
The issue I have now is that using the same method you show in your post it appears that the feeder is only being evaluated when I save the rule. The second I unload the cube and try to enter a new string value nothing happens.
Any ideas?
-
- 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 Match based on string input
I'm about 90% sure that in your scenario, using a lookup cube to determine an element match, that you have to re-process the feeders, either through re-saving the rule or issuing a ProcessFeeders command through TI, in order for it to be dynamic. I have encountered this before and that was the conclusion. I don't know if setting the ReevaluateConditionalFeeders=T in the tms.cfg file will solve that problem or not. I don't think so but it's worth a try.
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Feeder Match based on string input
PlanningDev wrote:There isn't really a need to fire it when the string is entered
I'm a little confused here, because based on your first quote the second quote isn't actually a problem??PlanningDev wrote:The second I unload the cube and try to enter a new string value nothing happens.
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
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Feeder Match based on string input
I realize now that those statements are contradictory. Yes I do need it to fire for both events but I was hoping to at least get it working for the data entry and if that will work then see about the string input.
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Feeder Match based on string input
It should just work for data entry, provided your string value is already in and correct.
As I mentioned above the only way to get it running for the string entry is to have it as the source for a feeder or periodically run the ProcessFeeders TI function.
Martin
As I mentioned above the only way to get it running for the string entry is to have it as the source for a feeder or periodically run the ProcessFeeders TI function.
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
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Feeder Match based on string input
I have been testing this and it doesn't appear that the feeders are working even after entering data. Not sure why it wouldn't fire after data entry but whats odd is like a said before, the trace feeders from the source cube shows that it is feeding the target cube but when checking feeders in the target cube it shows not fed.
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Feeder Match based on string input
Oddly enough, when I use the string cell to feed over to the target cube it works. Except when I unload the cube while string values exist then its not fed. Only entry of the string cell fires the feeder.
Still tryin to figure this one out! Thanks for your help
Still tryin to figure this one out! Thanks for your help
-
- MVP
- Posts: 3701
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Feeder Match based on string input
There's not much to figure out, what you are describing is expected behaviour and is simply the way that feeders work.PlanningDev wrote:Oddly enough, when I use the string cell to feed over to the target cube it works. Except when I unload the cube while string values exist then its not fed. Only entry of the string cell fires the feeder.
Still tryin to figure this one out! Thanks for your help
Numeric feeders fire only when the source cell value changes from NULL to any numeric value. Any subsequent change in value of the cell will not trigger the feeder to be re-evaluated. Hence if there are other changes in source conditions (such as changed attribute values which might affect the definition of the target area to be fed) then the area being fed wil not change unless the rule is re-saved or a ReprocessFeeders TI function is run.
String feeders on the other hand are different and fire on each and every change in value of the source cell.
If the area to be fed needs to change dynamically based on each change in a source value then the best option is to feed from a string cell as only string feeders have the functionality that it seems you are looking for. However do note that although new areas may be fed from a changed input value that areas that were fed by former conditions (but are no longer fed fro the current feeder conditions) will remain fed as once fed a cell stays fed for the duration of a server session (and longer if using persistent feeders, there is another current thread on that issue...)
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
Re: Feeder Match based on string input
Thanks for the info lotsaram.
It does appear that using the string to feed is the best option here but I am noticing now that this may need to be in combination with a TI that processes feeders on some interval. The reason being that server startup and cube unloads don't appear to be running the feeders as expected. It seems that processing feeders gets the cubes to the correct starting point.
It does appear that using the string to feed is the best option here but I am noticing now that this may need to be in combination with a TI that processes feeders on some interval. The reason being that server startup and cube unloads don't appear to be running the feeders as expected. It seems that processing feeders gets the cubes to the correct starting point.