Not sure whether you're using AS 2000 or AS 2005 - below are some ideas
for a few of the items, in AS 2000 syntax:
For Items #5/7, if you're trying to list the Type and Item for each
Site, based on the record in the fact table:
With
Member [Measures].[ItemName] as
'[Site Collection].CurrentMember.Name'
Member [Measures].[TypeName] as
'[Site Collection].Parent.Name'
select {[Measures].[TypeName], [Measures].[ItemName],
[Measures].[Items]} on 0,
NonEmptyCrossJoin([Site].[Site].Members,
[Site Collection].[Item].Members,
{[Measures].[Items]}, 2) on 1
from [SiteCube]
For item #8, here's a sample Foodmart query which calculates Sales per
square foot of a store:
Member [Measures].[Store Area] as
'Sum(Descendants([Store].CurrentMember, [Store].[Store Name]),
CInt([Store].Properties("Store Sqft")))'
Member [Measures].[SalesPerSqft] as
'[Measures].[Store Sales] / [Measures].[Store Area]',
FORMAT_STRING = 'Currency'
select {[Measures].[Store Sales], [Measures].[Store Area],
[Measures].[SalesPerSqft]} on 0,
Descendants([Store].[All Stores].[USA].[OR]) on 1
from Sales
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***