![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Try : SELECT {[Measures].[unit sales]} ON COLUMNS, NON EMPTY CROSSJOIN([Time].[1997].Children,order( [Product].[All Products].Children, [Measures].[unit sales] ,desc)) ON ROWS FROM Sales I've substituted Foodmart 2000 dimension and member names but it should be easy to convert it back. HTH, Brian www.geocities.com/brianaltmann/olap.html |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
You're correct. It appears that the second set is evaluated once and then duplicated for each member of the first set. This syntax seems to work, there might be other alternatives. SELECT {[Measures].[unit sales]} ON COLUMNS, NON EMPTY generate( [Time].[1997].Children ,CROSSJOIN( {time.currentmember},order( product.Children ,[measures].[unit |
|
FROM Sales HTH, Brian |
![]() |
| Thread Tools | |
| Display Modes | |
| |