![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Hi all, could someone tell me what is wrong with the following MDX? It can be run as is against the sales cube in Foodmart. With member [Measures].[# customers] as 'count(nonemptycrossjoin(Descendants ([Customers].currentmember,[Customers].[Name]), {[Measures].[Unit Sales]}))' select {[measures].[Unit Sales],[Measures].[# customers]} on 0, Filter([Customers].[City].members,not isnull([Measures]. [Unit Sales]) ) on 1 from Sales Query is supposed to get the following result: For each city in the customer dimension which has "Unit Sales", get the "Unit Sales" and the number of customers contributing to this value. That is, the number of nonempty rows the crossjoin of the city's descendants with Unit Sales generates. expected result gets me: City unit sales # customers Altadena 212 84 .... Berkley 72 18 .... The real result gets me this: City unit sales # customers Altadena 212 4 .... Berkley 72 6 .... What went wrong? And what is the Analysis Server really counting? Thank you in advance. Lutz . |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |