Is it possible to iterate through a level above store to get the number of stores, aggregate for stores, and the per store averages for several measures shown in the columns? Example MDX below.
WITH
SET OrgSet as 'Descendants([Store].[All Stores].[USA], [Store].[Store State])'
SET RowSet As 'Generate(OrgSet,{Store.CurrentMember, [Store].[Per Store Avg]},ALL)'
SET ColSet As 'Measures.Members'
MEMBER [Measures].[# Stores] As 'IIF(Store.CurrentMember IS Store.[Per Store Avg]," ", Cstr(Count(Descendants(Store.CurrentMember,[Store].[Store Name]))))'
MEMBER [Store].[Per Store Avg] As 'Avg(Descendants(Store.CurrentMember,Store.[Store Name]))'
SELECT
{Measures.[# Stores], ColSet} on Columns,
RowSet on Rows
FROM Sales
WHERE ([Product].[All Products], [Date].[Fiscal].[All Date].[1997].[12])
WITH
SET OrgSet as 'Descendants([Store].[All Stores].[USA], [Store].[Store State])'
SET RowSet As 'Generate(OrgSet,{Store.CurrentMember, [Store].[Per Store Avg]},ALL)'
SET ColSet As 'Measures.Members'
MEMBER [Measures].[# Stores] As 'IIF(Store.CurrentMember IS Store.[Per Store Avg]," ", Cstr(Count(Descendants(Store.CurrentMember,[Store].[Store Name]))))'
MEMBER [Store].[Per Store Avg] As 'Avg(Descendants(Store.CurrentMember,Store.[Store Name]))'
SELECT
{Measures.[# Stores], ColSet} on Columns,
RowSet on Rows
FROM Sales
WHERE ([Product].[All Products], [Date].[Fiscal].[All Date].[1997].[12])