Feeders for Strings in Consolidated Levels
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Feeders for Strings in Consolidated Levels
Hi,
I need to feed string data from one cube to the other. Both source and target are string measures and source and target cells in both cubes are consolidated levels.
How should I use feeders in this case? My feeders did not work as I expected.
Regards
I need to feed string data from one cube to the other. Both source and target are string measures and source and target cells in both cubes are consolidated levels.
How should I use feeders in this case? My feeders did not work as I expected.
Regards
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Feeders for Strings in Consolidated Levels
mce, you did not mention, so I want to make sure if you used FEEDSTRINGS command.
-
- Community Contributor
- Posts: 300
- Joined: Mon Mar 23, 2009 10:50 am
- OLAP Product: PAW/PAX 2.0.72 Perspectives
- Version: TM1 Server 11.8.003
- Excel Version: 365 and 2016
- Location: South London
Re: Feeders for Strings in Consolidated Levels
********* THIS IS FALSE ******************
You don't need to feed consolidations when they are calculated whether they are Numeric or String consolidations.
********* THIS IS FALSE ******************
I stated the above in my ignorance and have corrected this to prevent future readers getting the wrong information.
THIS BIT IS STILL TRUE
N level strings need to be fed.
Strings are fed in the normal way under FEEDERS; However this requires a FEEDSTRINGS ; declaration prior to SKIPCHECK otherwise the feeders are parsed without error but not implemented.
You don't need to feed consolidations when they are calculated whether they are Numeric or String consolidations.
********* THIS IS FALSE ******************
I stated the above in my ignorance and have corrected this to prevent future readers getting the wrong information.
THIS BIT IS STILL TRUE
N level strings need to be fed.
Strings are fed in the normal way under FEEDERS; However this requires a FEEDSTRINGS ; declaration prior to SKIPCHECK otherwise the feeders are parsed without error but not implemented.
Last edited by John Hammond on Tue Aug 23, 2011 12:50 pm, edited 1 time in total.
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Feeders for Strings in Consolidated Levels
Strings for the calculation purpose, no, but e.g. for the "appear in a zero suppressed view" purpose you need to feed strings and I thought this is the case.John Hammond wrote:You don't need to feed consolidations when they are calculated whether they are Numeric or String consolidations.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
I used FEEDSTRINGS command and I also put feeders.jstrygner wrote:mce, you did not mention, so I want to make sure if you used FEEDSTRINGS command.
My calculation works when zero suppression is not enabled. When I zero suppress, rule calculated string values are not displayed. Therefore I thought there is an issue with feeders.
-
- Community Contributor
- Posts: 300
- Joined: Mon Mar 23, 2009 10:50 am
- OLAP Product: PAW/PAX 2.0.72 Perspectives
- Version: TM1 Server 11.8.003
- Excel Version: 365 and 2016
- Location: South London
Re: Feeders for Strings in Consolidated Levels
mce
Please could you post your code so we can take a look.
Please could you post your code so we can take a look.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
Code: Select all
# rule in my target cube
FEEDSTRINGS;
SKIPCHECK;
['dim4':'conselementindim4']=S:DB('mysourcecube',!dim1,!dim2,!dim3);
Code: Select all
#rule in my source cube
#dim3 has only string elements.
FEEDSTRINGS;
SKIPCHECK;
FEEDERS;
[]=>DB('mytargetcube','conselementindim4',!dim1,!dim2,!dim3);
Last edited by mce on Fri Aug 19, 2011 2:40 am, edited 1 time in total.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
actually it works now. maybe I did not test it properly initially.
still any comments will be appreciated.
still any comments will be appreciated.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
however it works very slow due to the overfeeding. it feeds all children in dim4 to display the string in one consolidation item in dim4. I cannot use it this way. it looks feeding strings in consolidation levels is very inefficient in TM1.
I would appreciate any suggestions.
I would appreciate any suggestions.
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Feeders for Strings in Consolidated Levels
The obvious suggestion is to feed just one child of that consolidation instead of them all. Use ELCOMP('dim4', 'conselementindim4', 1) to achieve that.
Secondly, limit the feeding range, right now your whole cube is feeding and with a lot of data it can take a while.
Secondly, limit the feeding range, right now your whole cube is feeding and with a lot of data it can take a while.
Kamil Arendt
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
Already tried this but does not make the rule work consolidated element when zero suppressed.qml wrote:The obvious suggestion is to feed just one child of that consolidation instead of them all.
actually I have many more dimensions in the target cube similar to dim4 and I need string data to appear oly in top consolidated items in those. actually it is a small range if you only consider this top slice, but since it has to feed all children to make rule work for the top consol element, it turns out to be feeding too many cells.qml wrote:Secondly, limit the feeding range, right now your whole cube is feeding and with a lot of data it can take a while.
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Feeders for Strings in Consolidated Levels
This is unexpected. It should be enough for one child of a consolidation to be fed in order to see the consolidation in a zero-supressed view. There should be no need to feed all the children. I think I've had someone report to me a similar problem with version 9.5.1 (no fixpacks) and I would actually start considering this to be a bug.mce wrote:Already tried this but does not make the rule work consolidated element when zero suppressed.qml wrote:The obvious suggestion is to feed just one child of that consolidation instead of them all.
Kamil Arendt
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
This works for numeric measures in 9.5.1. Are you sure that it is supposed to work also for string measures? Has it been working in any other version before?qml wrote:This is unexpected. It should be enough for one child of a consolidation to be fed in order to see the consolidation in a zero-supressed view. There should be no need to feed all the children. I think I've had someone report to me a similar problem with version 9.5.1 (no fixpacks) and I would actually start considering this to be a bug.
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Feeders for Strings in Consolidated Levels
I know we're talking about strings here. I THINK it has worked in other versions, but of course it would be nice if someone could confirm that (or prove me wrong).
Kamil Arendt
-
- MVP
- Posts: 195
- Joined: Wed Jul 22, 2009 10:35 pm
- OLAP Product: TM1
- Version: 9.5.2 FP3
- Excel Version: 2010
Re: Feeders for Strings in Consolidated Levels
Hi, just checked what qml suggested on two environments: 9.5.1 HF17 and 9.4.1 FP3 (don't know which HF). In both cases feeding the string cell on leaf level does not make the string on consolidation level visible when zeroes suppressed
.
There is a method to achieve what you need without feeding all the string-children, but I think it is definitely not worth implementing. I put it only as a brainstorm teaser
.
You can turn off rules for this string, put manually a value in the consolidation-string cell and then reapply the rule.
This way cell will get this "non-empty" flag and will be visible when you suppress zeroes and will be calculated properly on-the-fly.
But it will be there only till you unload cube/restart server, because as we know now TM1 lost its old functionality of storing manually inputted data under rule calculated cells (I also checked it for my both environments listed above and even in my 9.4.1 it also makes values turn to blank after applying a rule and then removing it, checked both numeric and string cells).
So as I said before, this is something you probably will not want to use, but maybe following this path somebody else will get some useful ideas.
Other option is of course to fill the cell via TI, but I am sure you already considered it.

There is a method to achieve what you need without feeding all the string-children, but I think it is definitely not worth implementing. I put it only as a brainstorm teaser

You can turn off rules for this string, put manually a value in the consolidation-string cell and then reapply the rule.
This way cell will get this "non-empty" flag and will be visible when you suppress zeroes and will be calculated properly on-the-fly.
But it will be there only till you unload cube/restart server, because as we know now TM1 lost its old functionality of storing manually inputted data under rule calculated cells (I also checked it for my both environments listed above and even in my 9.4.1 it also makes values turn to blank after applying a rule and then removing it, checked both numeric and string cells).
So as I said before, this is something you probably will not want to use, but maybe following this path somebody else will get some useful ideas.
Other option is of course to fill the cell via TI, but I am sure you already considered it.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: Feeders for Strings in Consolidated Levels
I already observed that this works. But I am trying to avoid storing string measures in big target cube, and always display them via rule from another smaller cube. When I do the above, I will have to store some text in the target cube anyway. Thanks anyway for the suggestion.jstrygner wrote:You can turn off rules for this string, put manually a value in the consolidation-string cell and then reapply the rule.
This way cell will get this "non-empty" flag and will be visible when you suppress zeroes and will be calculated properly on-the-fly.
It looks the only option remains to be is to get rid of the small source cube and directly load string data into the big target cube. This is a shame for TM1 not being able to do lookups efficiently on string data for consolidated level cells.
-
- Posts: 74
- Joined: Thu Jun 17, 2010 10:35 am
- OLAP Product: TM1
- Version: 9.4 9.5.1
- Excel Version: 2003 - 2007
Re: Feeders for Strings in Consolidated Levels
Have you try to use ConsolidateChildren function instead of feeder?
(Dont know if it works)
(Dont know if it works)
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Feeders for Strings in Consolidated Levels
Not to put too fine a point on it but that is a ridiculous suggestion. Have you ever even used this function or even looked at the documentation for ConsolidateChildren?rozef wrote:Have you try to use ConsolidateChildren function instead of feeder?
(Dont know if it works)
-
- Posts: 74
- Joined: Thu Jun 17, 2010 10:35 am
- OLAP Product: TM1
- Version: 9.4 9.5.1
- Excel Version: 2003 - 2007
Re: Feeders for Strings in Consolidated Levels
Yes I already used it and I dont see why you are saying thats a ridiculous suggestion.lotsaram wrote:Not to put too fine a point on it but that is a ridiculous suggestion. Have you ever even used this function or even looked at the documentation for ConsolidateChildren?rozef wrote:Have you try to use ConsolidateChildren function instead of feeder?
(Dont know if it works)
This function allow to consolidate only targeted elements which is exactly what mce want to do (sorry if I am wrong).
I dont know if it works on Strings (I dont see why it shouldn't).
It is lighter then use classical feeder and you can feed all the elements of a dimension by targeting one top consolidate element (if its sons are calculated).
You can choose several axis too, tough it is not precised in IBM exemples.
The only problems of this function is that you have to feed with it all the long of the chain of rules that you have started with,
and to feed all elements you have to use it on all different hierarchy levels in one dimension.
If you have more question on it, I will be glad to answer you.
Regards.
-
- 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: Feeders for Strings in Consolidated Levels
It's a ridiculous suggestion because ConsolidateChldren has nothing whatsoever to do with string values and feeding cells with string values. Using the ConsolidateChildren function will not feed anything. You still have to write feeders when you use that function so how is that going to help with the original problem? The issue here is that for string purposes, there is no such thing as a consolidaton. Any cell that is configured to hold string values is automatically treated as a leaf element. The problem the original poster is having is with how to get a consolidated cell, that is holding string values, fed. Using ConsolidateChildren to define the consolidation point is not going to do anything to help with that. What the OP needs to do is use the FEEDSTRINGS statement in the rule and then be sure to feed the cell that holds the string, even though it is a consolidated node in the hierarchy. As long as you write the feeder to be limited to only the element in measure dimenion that is specificed as "S" type, it should work.rozef wrote:Yes I already used it and I dont see why you are saying thats a ridiculous suggestion.