![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| microsoft.public.sqlserver.olap > MSAS: Trimmed Average |
#3
| |||
| |||
|
|
A past thread from this Newsgroup discusses a similar "trimmed" average problem, so those solutions may work for you - albeit with poor performance: http://groups.google.com/group/micro...olap/msg/1fab5 c2ab767b87d microsoft.public.sqlserver.olap > MSAS: Trimmed Average .. To exclude exceptions that have a huge impact on the average I want to create a trimmed average. That is, I want to exclude the top 25% values in my trimmed average measure, which are the 2 records with the highest ThroughputTime, being ordernumber 00007 and 00008 in the "All Certificate" & "All Completed" row, but different in the other rows. I also want the bottom 25% values to be trimmed, which are the 2 records with the lowest ThroughputTime, being ordernumber 00001 and 0003 in the "All Certificate" & "All Completed" row. .. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
|
Thanx Deepak... I'll check it out. J'son Deepak Puri wrote: A past thread from this Newsgroup discusses a similar "trimmed" average problem, so those solutions may work for you - albeit with poor performance: http://groups.google.com/group/micro...olap/msg/1fab5 c2ab767b87d microsoft.public.sqlserver.olap > MSAS: Trimmed Average .. To exclude exceptions that have a huge impact on the average I want to create a trimmed average. That is, I want to exclude the top 25% values in my trimmed average measure, which are the 2 records with the highest ThroughputTime, being ordernumber 00007 and 00008 in the "All Certificate" & "All Completed" row, but different in the other rows. I also want the bottom 25% values to be trimmed, which are the 2 records with the lowest ThroughputTime, being ordernumber 00001 and 0003 in the "All Certificate" & "All Completed" row. .. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#5
| |||
| |||
|
| Avg(Except(Except(Filter( |
#6
| |||
| |||
|
|
You can try to filter with "Existing", like: Avg(Except(Except(Filter( Existing [Organization].[Organization].[Organization].Members, Not IsEmpty( [Measures].[MSC Licenses])), TopCount( Existing [Organization].[Organization].[Organization].Members, Count(Filter( Existing [Organization].[Organization].[Organization].Members, Not IsEmpty([Measures].[MSC Licenses])))/4, [Measures].[MSC Licenses])), BottomCount(Filter( Existing [Organization].[Organization].[Organization].Members, Not IsEmpty([Measures].[MSC Licenses])), Count(Filter( Existing [Organization].[Organization].[Organization].Members, Not IsEmpty([Measures].[MSC Licenses])))/4, [Measures].[MSC Licenses])), [Measures].[MSC Licenses]) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |