SELECT
NON EMPTY {[Measures].[Page Views]} ON COLUMNS,
NON EMPTY {
Crossjoin({[Date Dim.Weekday Hierarchy].[Weekday].Members},
{[Time Dimension.Time Hierarchy].[Hour].Members})
} ON ROWS
FROM [All Facts]
Is code to get the page views per weekday. It currently returns data like this:
Sunday
……0 – 198273
……1 – 123987
……2 – 128372
……3 – 1283712
for each hour, for each day.
How do I get this to concatenate the strings from the crossjoin, so that it returns:
Sunday 0 – 198273
Sunday 1 – 123987
Sunday 2 – 128372
Sunday 3 – 1283712
Or must this be created as a totally new measure?
Found a solution:
You have to ignore the row headers, but it produces the result I wanted! 🙂 @icCube had the right-ish idea, just Mondrian needed || instead of +, and “CurrentMember.name” instead of just “name”