![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| [Measures].[Stock Availability Index %] As |
#3
| |||
| |||
|
|
IIF([Measures].[RS 1DayRR Tn] [Measures].[RS Stock TN], 100, ([Measures].[RS Stock TN] * 100) /[Measures].[RS 1DayRR Tn]))' |
|
Since you are doing sum/count, which is a simple rather than weighted average, just use Avg() of Filter(): [Measures].[Stock Availability Index %] As 'Avg(Filter([Product].[Category].CurrentMember.Children, [Measures].[RS 1DayRR Tn] > 0), IIF([Measures].[RS 1DayRR Tn] [Measures].[RS Stock TN], 100, ([Measures].[RS Stock TN] * 100) /[Measures].[RS 1DayRR Tn]))' - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |