![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a MDX statement for the AS2K Foodmart 2000 database which returns strange results. I want to count the elements of a set of elements and show it to the user. I modified my original example as much as possible to reproduce the problem. The result is the MDX statement below - one would assume that MDX would return 1 as [Customers].[*Count] because there is only one element in the set - unfortunately it returns two ... I there anyone who can explain this behavior? Thanks a lot for any help Thomas MDX sample for AS2K Foodmart 2000 database: with member [Customers].[*Count] as 'Count({[Customers].[All Customers].[USA].[CA]})' member [Product].[<Multiple Selection>] as 'aggregate({[Product].[All Products].[Drink], [Product].[All Products].[Food]})' select {[Customers].[All Customers].[USA].[CA],[Customers].[*Count]} on rows, {[Gender].[All Gender]} on columns from [Sales] where [Product].[<Multiple Selection>] |
![]() |
| Thread Tools | |
| Display Modes | |
| |