how calculate price weighted average in tm1

Post Reply
borisslu
Posts: 15
Joined: Sun Jul 13, 2008 6:49 am

how calculate price weighted average in tm1

Post by borisslu »

hi,
can u help me?

for example:

product Quantity Price

X+Y 10 6 how can i calculate this price

X 5 10

Y 5 2


sometimes i have more then 2 products
Thanks
Wim Gielis
MVP
Posts: 3230
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: how calculate price weighted average in tm1

Post by Wim Gielis »

Hello Borisslu

You could create a measure called Revenue, begin:

['Revenue']=N:['Quantity']*['Price'];

Most of the time, Price will be manual input (or TI process, or Excel sheet) at the leaf level. At the consolidated level, you have the weighted average for Price as:

['Price']=N:STET;C:['Revenue']\['Quantity'];
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
User avatar
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: how calculate price weighted average in tm1

Post by Martin Ryan »

There are a few methods for calculating averages in this post: http://forums.olapforums.com/viewtopic.php?f=21&t=388

Cheers,
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
borisslu
Posts: 15
Joined: Sun Jul 13, 2008 6:49 am

Re: how calculate price weighted average in tm1

Post by borisslu »

hi
Thanks you very much

Boris
Post Reply