Getting a count of users each day in Mondrian MDX
Posted
by
user1874144
on Stack Overflow
See other posts from Stack Overflow
or by user1874144
Published on 2012-12-04T00:03:39Z
Indexed on
2012/12/05
5:04 UTC
Read the original article
Hit count: 182
I'm trying to write a query to give me the total number of users for each customer per day.
Here is what I have so far, which for each customer/day combination is giving the total number of user dimension entries without splitting them up by customer/day.
WITH MEMBER [Measures].[MyUserCount]
AS COUNT(Descendants([User].CurrentMember, [User].[User Name]), INCLUDEEMPTY)
SELECT
NON EMPTY CrossJoin([Date].[Date].Members, [Customer].[Customer Name].Members) ON ROWS,
{[Measures].[MyUserCount]} on COLUMNS
FROM
[Users]
© Stack Overflow or respective owner