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)
How to Aggregate based on attribute value?
- 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?
Last edited by vinnusea on Wed Nov 17, 2010 9:28 pm, edited 1 time in total.
Thanks
Vinnusea
Vinnusea
- 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?
Think so..
Do you have any Idea how can it be DONE??????
Do you have any Idea how can it be DONE??????
Thanks
Vinnusea
Vinnusea
-
- 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?
['Filtered Amount']=N:IF(ATTRN('Product',!Product,FilterAttrName)=1,DB(Cube,Product, Dim2, Dim3,'Amount'),0);
-
- Site Admin
- Posts: 1457
- Joined: Wed May 28, 2008 9:09 am
Re: How to Aggregate based on attribute value?
Or even
Not that what @tomok wrote wouldn't work. I just feel that shorter is generally better.
Code: Select all
['Filtered Amount'] = N: ['Amount'] * ATTRN('Product',!Product,FilterAttrName);
-
- 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?
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.
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.
- 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?
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
Will give it a try and update this link back
Thank you
Thanks
Vinnusea
Vinnusea