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
how calculate price weighted average in tm1
-
- 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
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'];
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
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
- 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
There are a few methods for calculating averages in this post: http://forums.olapforums.com/viewtopic.php?f=21&t=388
Cheers,
Martin
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
Jodi Ryan Family Lawyer
Re: how calculate price weighted average in tm1
hi
Thanks you very much
Boris
Thanks you very much
Boris