
with member [Measures].[Quantity %] as '[Measures].[Quantity]/([Measures].[Quantity],[Customers.defaultHiera].[All Customers],[Time.defaultHiera].[All Time])', format_string='Percent'

SELECT 
{Hierarchize(Union({[Time.defaultHiera].[All Time]}, [Time.defaultHiera].[All Time].children))} on columns,
{Hierarchize(Crossjoin(Union({[Customers.defaultHiera].[All Customers]}, [Customers.defaultHiera].[All Customers].children), {[Measures].[Quantity %]}))} on rows
FROM [Sales Analysis]
