![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi, I want to introduce a calculated member for getting the product of amount and price. The amount is in a hierarchical structure and aggregates on the upper levels. For the price it would be necessary to put the average to the upper levels, that the product of amount and price would be correct for the other levels of the hierarchie. How to define the calculated member PRICE? Thanks and best Regards, Michael |
#2
| |||
| |||
|
|
-----Original Message----- I think the problem that you are seeing is that if you create a calculated member based on the two measures (Amount and Price) that the data doesn't roll up correctly in Analysis Services. Here's how you solve that problem. Use a view in which you have a column that multiplies out amount and price and use that view as the fact table. You can then create a regular measure based on that column and the data will roll up correctly. You can also use your existing fact table and just specify the following for the source column of the measure "tablename"."amount" * "tablename"."price". There's actually an example of this in one of the Foodmart 2000 cubes. Sean -- Sean Boon SQL Server BI Product Unit Disclaimer : This posting is provided "AS IS" with no warranties, and confers no rights. "michael" <ekleinm (AT) gmx (DOT) de> wrote in message news:0ac101c34ab5$66792fe0$a101280a (AT) phx (DOT) gbl... Hi, I want to introduce a calculated member for getting the product of amount and price. The amount is in a hierarchical structure and aggregates on the upper levels. For the price it would be necessary to put the average to the upper levels, that the product of amount and price would be correct for the other levels of the hierarchie. How to define the calculated member PRICE? Thanks and best Regards, Michael . |
![]() |
| Thread Tools | |
| Display Modes | |
| |