![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Introduction to MSSQL Server 2000 Analysis Services: Derived Measures |
#3
| |||
| |||
|
|
Based on the problem description and assuming that you're using AS 2000, you might be able to use derived measures in the cube for the averages, rather than computing them in the Oracle view. For example, you could create a "sum" measure like Commission, with the Source Column property defined as: commission rate * quantity And another "sum" measure like Quantity, simply based on the quantity field. Then, the AvgCommissionRate would be: [Measures].[Commission]/[Measures].[Quantity] Derived vs. calculated measures for AS 2000 are discussed here: http://www.databasejournal.com/featu...le.php/3394681 Introduction to MSSQL Server 2000 Analysis Services: Derived Measures vs. Calculated Measures By William Pearson ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
|
Based on the problem description and assuming that you're using AS 2000, you might be able to use derived measures in the cube for the averages, rather than computing them in the Oracle view. For example, you could create a "sum" measure like Commission, with the Source Column property defined as: commission rate * quantity And another "sum" measure like Quantity, simply based on the quantity field. Then, the AvgCommissionRate would be: [Measures].[Commission]/[Measures].[Quantity] Derived vs. calculated measures for AS 2000 are discussed here: http://www.databasejournal.com/featu...le.php/3394681 Introduction to MSSQL Server 2000 Analysis Services: Derived Measures vs. Calculated Measures By William Pearson ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
|
Hi Deepak, I am trying to create the commission calculated member but getting errors. Here is the formula Commission = Iif([UOM].[UOM].CurrentMember = 'BPS', ([Measures].[Tot Comm Rate] *[Measures].[Principal Amt]), Iif([UOM].[UOM].Current = 'CPS',[Measures].[Tot Comm Rate] * [Measures].[Quantity])) "Deepak Puri" wrote: Based on the problem description and assuming that you're using AS 2000, you might be able to use derived measures in the cube for the averages, rather than computing them in the Oracle view. For example, you could create a "sum" measure like Commission, with the Source Column property defined as: commission rate * quantity And another "sum" measure like Quantity, simply based on the quantity field. Then, the AvgCommissionRate would be: [Measures].[Commission]/[Measures].[Quantity] Derived vs. calculated measures for AS 2000 are discussed here: http://www.databasejournal.com/featu...le.php/3394681 Introduction to MSSQL Server 2000 Analysis Services: Derived Measures vs. Calculated Measures By William Pearson ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
|
Based on the problem description and assuming that you're using AS 2000, you might be able to use derived measures in the cube for the averages, rather than computing them in the Oracle view. For example, you could create a "sum" measure like Commission, with the Source Column property defined as: commission rate * quantity And another "sum" measure like Quantity, simply based on the quantity field. Then, the AvgCommissionRate would be: [Measures].[Commission]/[Measures].[Quantity] Derived vs. calculated measures for AS 2000 are discussed here: http://www.databasejournal.com/featu...le.php/3394681 Introduction to MSSQL Server 2000 Analysis Services: Derived Measures vs. Calculated Measures By William Pearson ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |