How to Aggregate based on attribute value?

Post Reply
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

How to Aggregate based on attribute value?

Post by vinnusea »

hi
I have a measure and products dimension

For some products the Attr value is 1 and rest all products its 0

There is Top level in Products Dim --Total By Product

I want Total by Product to have aggregated values of products with attr value 1

(Note: For whom attr value is 1 their measure is having Values and All Other Attr measure value is zero)
Last edited by vinnusea on Wed Nov 17, 2010 9:28 pm, edited 1 time in total.
Thanks
Vinnusea
User avatar
rkaif
Community Contributor
Posts: 328
Joined: Fri Sep 05, 2008 6:58 pm
OLAP Product: IBM Cognos TM1
Version: 9.1 or later
Excel Version: 2003 or later

Re: Rules Editor Error..Need Help

Post by rkaif »

Double posting?
Cheers!
Rizwan Kaif
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

Re: How to Aggregate based on attribute value?

Post by vinnusea »

Think so..
Do you have any Idea how can it be DONE??????
Thanks
Vinnusea
tomok
MVP
Posts: 2832
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: How to Aggregate based on attribute value?

Post by tomok »

['Filtered Amount']=N:IF(ATTRN('Product',!Product,FilterAttrName)=1,DB(Cube,Product, Dim2, Dim3,'Amount'),0);
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
David Usherwood
Site Admin
Posts: 1457
Joined: Wed May 28, 2008 9:09 am

Re: How to Aggregate based on attribute value?

Post by David Usherwood »

Or even

Code: Select all

['Filtered Amount'] = N: ['Amount'] * ATTRN('Product',!Product,FilterAttrName);
Not that what @tomok wrote wouldn't work. I just feel that shorter is generally better.
lotsaram
MVP
Posts: 3656
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: How to Aggregate based on attribute value?

Post by lotsaram »

Or you can us a combination of TI and consolidations ...

Eg: have TI run through the dimension and if the attribute value is there then add the element to an alternate rollup. Not as dynamic as rules as it woudl require a user button click at some point but still very quick and much more efficient when it comes to memory use and calculation speed.
User avatar
vinnusea
Posts: 116
Joined: Thu Sep 23, 2010 6:12 pm
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Location: San Diego ,CA

Re: How to Aggregate based on attribute value?

Post by vinnusea »

yes i think need to go with some TI process to make aggregate based on Attr values...

Will give it a try and update this link back

Thank you
Thanks
Vinnusea
Post Reply