![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to have the avg days worked for all the drivers in a specific period. The first calculated member works, but calculates the avg over all members: Avg(Descendants([drivers].currentmember,[drivers].[Rel Nr]), [Measures].[Dagen]) Then I thought that a nonemptycrossjoin would do the job: count all the members that have a value in the period and take the average of that. The sybtax is ok but the run time produces an error avg(NonEmptyCrossJoin(Descendants([drivers].currentmember, [drivers].[Rel Nr]), [kalender].currentmember) ,[Measures].[Dagen]) Even the MDX solutions by George Spofford does not give a clue to this Can someone help me? Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
| |