![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear all, Calculated Member, [Total Sold] = [Measures].[Quantity] * [Measures].[Unit Price] How to apply aggregation on the calculated member, [Total Sold], 1000+2000=3000, instead of 6000 ? Quantity Unit Price Total Sold Total Product 30 200 6000-->should be 3000 Product A 10 100 1000 Product B 20 100 2000 Thanks in advance, Tan |
#3
| |||
| |||
|
|
Dear all, Calculated Member, [Total Sold] = [Measures].[Quantity] * [Measures].[Unit Price] How to apply aggregation on the calculated member, [Total Sold], 1000+2000=3000, instead of 6000 ? Quantity Unit Price Total Sold Total Product 30 200 6000-->should be 3000 Product A 10 100 1000 Product B 20 100 2000 Thanks in advance, Tan |
#4
| |||
| |||
|
|
you have to create an average unit price (UnitPriceSum / UnitPriceCount) then you'll have the correct value. |

|
or you have to create a new measure (not a calculated measure) which is the Total Sold value (Qty * Price) |
|
"cct" <peoplecosoftware (AT) newsgroup (DOT) nospam> wrote in message news:ugYlBTA%23FHA.1444 (AT) TK2MSFTNGP10 (DOT) phx.gbl... Dear all, Calculated Member, [Total Sold] = [Measures].[Quantity] * [Measures].[Unit Price] How to apply aggregation on the calculated member, [Total Sold], 1000+2000=3000, instead of 6000 ? Quantity Unit Price Total Sold Total Product 30 200 6000-->should be 3000 Product A 10 100 1000 Product B 20 100 2000 Thanks in advance, Tan |
#5
| |||
| |||
|
|
You need to make the calculated member do the summation at a lower level than it is currently. Therefore you'll need to force it down to the lowest level of product to do the summation. Give the calculation below a try... SUM(DESCENDANTS([Product].currentmember,[product].[product lowest level]),[Measures].[Quantity] * [Measures].[Unit Price]) Cheers, L cct wrote: Dear all, Calculated Member, [Total Sold] = [Measures].[Quantity] * [Measures].[Unit Price] How to apply aggregation on the calculated member, [Total Sold], 1000+2000=3000, instead of 6000 ? Quantity Unit Price Total Sold Total Product 30 200 6000-->should be 3000 Product A 10 100 1000 Product B 20 100 2000 Thanks in advance, Tan |
![]() |
| Thread Tools | |
| Display Modes | |
| |