![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| ||||
| ||||
|
| Regarding to "Corrected Mean" problem as you ask the table size, it is |
| Avg(Filter([Transaction].[Transaction_ID].Members, |
#4
| |||
| |||
|
|
Regarding to "Corrected Mean" problem as you ask the table size, it is 1.531 MB Time_Key int Primary Key User_Key int Primary Key Tracking_Code_Key int Primary Key Local_Campaign_Key int Primary Key Marketing_Agent_Key int Primary Key Global_Campaign_Key int Primary Key Channel_Key int Primary Key Transaction_ID bigint Deposit_Amount decimal(18, 4) Deposit_Sqr decimal(18, 4) Mean decimal(18, 4) Stddev decimal(18, 4) Assuming that Transaction_ID is a unique key for the fact table, how many values (rows of fact table) are there? One appraoch (depending on number of rows) would be to add a [Transaction] dimension, with [Transaction_ID] as the leaf level. Using the earlier calculated measures for Mean and StdDev, the corrected mean could then be computed: Avg(Filter([Transaction].[Transaction_ID].Members, Not IsEmpty([Measures].[Deposit_Amount]) And Abs([Measures].[Deposit_Amount] - ([Measures].[MeanX], [Transaction].[All Transaction])) ([Measures].[SigX], [Transaction].[All Transaction]))) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
| COUNT(FILTER([Deposit].[DIM Deposit].[DIM Deposit].Members, |
![]() |
| Thread Tools | |
| Display Modes | |
| |