Using Measures
Types of Measures Additive – A Measure Where the Value of a Member Is the Sum of Its Children At Any Level of Any Dimension Amount Units Non-Additive - A Measure Where the Value of a Member Is NOT the Sum of Its Children At Any Level of Any Dimension Prices Interest Rates Semi-Additive – A Measure where the Value of a Member Is Additive Across All Dimensions Except Time Balances Headcounts
Measures in Analysis Services Stored Values Come from Fact Table Use Column or SQL Expression Calculated Before Aggregations Calculated Values Generated dynamically MDX Expressions Calculated After Aggregations
Using Unary Operators
Creating Unary Operators Change Unary Operators Property to True Define a Dimension Table Column that Provides Operators Update Operator Column In Dimension Editor, if write-enabled In source database, if not write-enabled
Write-enabling dimensions End-users change dimensional structures without Administrator rights Changes stored in the dimension table Changes cannot be made until in a processed cube Requires Enterprise Edition of SQL Server
Distinct Count High End Feature Difficult in OLAP Systems CustomerProductDay jsmithWine4/16/99 dharrisBeer4/16/99 jsmithWine4/16/99 kyoungWine4/16/99 dharrisWine4/17/99 dharrisWine4/17/99 jsmithBeer4/17/99 dharrisBeer4/17/99 All ProductsWineBeer All Time633 4/16/ /17/99312 How many customers bought wine and beer each day? All ProductsWineBeer All Time /16/ /17/ DISTINCT
Distinct Count Fundamentally Different From Sum, Min, Max, Count Should Be Kept in a Separate Cube Can Not Be Used With Other Calculations