Profit for 10 years

Post Reply
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Profit for 10 years

Post by Wirt »

hello everyone,
I have a problem at the time of counting income for 10 years. I have a cube,
in it there is a calculation of four elements, I need to count the sum of these elements by 10 years.
I consider through attributes as a summation ( total for 2011 + total for 2012 + total for 2013 + total for 2014 and so on ).
I have Measurement to 2036 year, if now 2014, the sum in 10 years considers by 2023 (the current year considers too)
Everything considers correctly, but very long, calculation goes about a minute - one and a half,
Perhaps someone can prompt as to accelerate calculation
I will be very grateful
thanks
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Profit for 10 years

Post by rmackenzie »

Do you have a year dimension?
Robin Mackenzie
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Re: Profit for 10 years

Post by Wirt »

yes, in other cube where I draw out total values, and then I summarize them
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: Profit for 10 years

Post by jim wood »

Do you only need this calculated for the currrent year or all years? Have you considered simply creating a consolidation in your year dimension?

Anothe roption is if you use PM you should be able to create a time based rule in your year dimension, as long as the year dimension is set as your time dimension,

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
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Profit for 10 years

Post by rmackenzie »

Wirt wrote:yes, in other cube where I draw out total values, and then I summarize them
So why don't you do the '10 year profit calc' in the source cube and pull through the final value to the summary cube (i.e. your reporting cube). If you need to add stuff up in a cube and you've decided not to use a bog-standard dimension aggregation then you've simply got to question that decision.

Everyone gets that some summary cubes may not have certain dimensions doing consolidations because, for some reason, you need a 'report in a cube' ... but simply adding up 10 years of something is probably easiest done through custom consolidations in a Year dimension. E.g.
10 Years to 2014
-2014
-2013
-2012
-2011
-2010
etc
Robin Mackenzie
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Profit for 10 years

Post by rmackenzie »

Wirt wrote:I consider through attributes as a summation ( total for 2011 + total for 2012 + total for 2013 + total for 2014 and so on ).
I have Measurement to 2036 year, if now 2014, the sum in 10 years considers by 2023 (the current year considers too)
Everything considers correctly, but very long, calculation goes about a minute - one and a half,
Perhaps someone can prompt as to accelerate calculation
If you absolutely have to use a rule based on attributes - why don't you post the rule? You will likely get some constructive feedback.
Robin Mackenzie
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Re: Profit for 10 years

Post by Wirt »

I have a measurement - Period ( 2013,2014,2015,2016 ... 2035,2036 ) (only years)
I have four affiliated elements
'Profit 1'
'Profit 2'
'Profit 3'
'Profit 4'

and a consolidating element - 'Comprehensive Profit'

+'Comprehensive Profit'
- 'Profit 1'
- 'Profit 2'
- 'Profit 3'
- 'Profit 4'


and a simple element which considers the profit in 10 years - 'Profit for 10 years'

So,

['Profit 1'] = N: DB ( 'Calculation of the Profit 1', ......, ATTRS ( 'Period', !Period, 'year'), 'Profit 1' );
['Profit 2'] = N: DB ( 'Calculation of the Profit 2', ......, ATTRS ( 'Period', !Period, 'year'), 'Profit 2' );
['Profit 3'] = N: DB ( 'Calculation of the Profit 3', ......, ATTRS ( 'Period', !Period, 'year'), 'Profit 3' );
['Profit 4'] = N: DB ( 'Calculation of the Profit 4', ......, ATTRS ( 'Period', !Period, 'year'), 'Profit 4' );

In cubes 'Calculation of the Profit (1,2,3,4)' profit is calculated in month,
data 'total in a year' get to a cube Profit

and

['Profit for 10 years']=N:
['Comprehensive Profit']+
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 1year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 2year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 3year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 4year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 5year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 6year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 7year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 8year'),'Comprehensive Profit') +
DB('Profit'.....,ATTRS ( 'Period', !Period, 'Next 9year'),'Comprehensive Profit') ;

everything considers but very slowly,

may be, because a long period?
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Profit for 10 years

Post by rmackenzie »

Have you looked at using a continuous time dimesions (i.e. period and months in the same dimension) and having decade-to-date consolidations in there. This would give you the sort of cumulative profit calculation you are after without using rules, I suspect.
Robin Mackenzie
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: Profit for 10 years

Post by jim wood »

rmackenzie wrote:having decade-to-date consolidations in there. This would give you the sort of cumulative profit calculation you are after without using rules, I suspect.
jim wood wrote:Have you considered simply creating a consolidation in your year dimension?
That's pretty much where I was heading, hence asking if for current period only or not. The only catch to it is how this being reported I guess. There may be a requirement for a specific measure (or account) in the reports. You can work around this easily if the reporting solution is Excel but it will be a little harder in say BI,

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
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Profit for 10 years

Post by rmackenzie »

jim wood wrote:hat's pretty much where I was heading, hence asking if for current period only or not. The only catch to it is how this being reported I guess. There may be a requirement for a specific measure (or account) in the reports. You can work around this easily if the reporting solution is Excel but it will be a little harder in say BI,
Yes, I agree. The OP can get the best of both worlds if one cube does the calculations with decade-to-date consolidations and has the 'current period' result in a separate reporting cube that is more amenable for BI reporting.
Robin Mackenzie
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Profit for 10 years

Post by BariAbdul »

Hi Wirt,look at Wim's blog,there is quite good article with title 'Relative Time Dimensions'.It Could help you.Thanks
http://www.wimgielis.be/
"You Never Fail Until You Stop Trying......"
Wirt
Posts: 37
Joined: Fri Feb 21, 2014 9:55 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 10

Re: Profit for 10 years

Post by Wirt »

thanks for the help, I'll take into account your advice
Post Reply