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

Filed under:
|
|
|
|

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

Related posts about mdx

Related posts about olap

  • MDX lekérdezések az Oracle OLAP-hoz

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Az Oracle OpenWord-ön, 2009. október 12-én jelentette be az Oracle, hogy elkészült a Simba Technologies MDX eszköze az Oracle OLAP eléréséhez: Oracle and Simba Technologies Introduce MDX Provider for Oracle® OLAP. Az MDX Provider for Oracle® OLAP eszközzel közvetlenül az Excel felületrol lehet elérni… >>> More

  • An OLAP client!

    as seen on SQL Blog - Search for 'SQL Blog'
    While surfing CodePlex I’ve come across a very interesting tool for all BI Developers who misses a decent OLAP client where to write, run & test MDX queries http://ranetuilibraryolap.codeplex.com/ I’ve not tested it yet, but I’ll surely do this week and I’ll post my impressions ASAP. The first… >>> More

  • An OLAP client!

    as seen on SQL Blog - Search for 'SQL Blog'
    While surfing CodePlex I’ve come across a very interesting tool for all BI Developers who misses a decent OLAP client where to write, run & test MDX queries http://ranetuilibraryolap.codeplex.com/ I’ve not tested it yet, but I’ll surely do this week and I’ll post my impressions ASAP. The first… >>> More

  • OWB 11gR2 – OLAP and Simba

    as seen on Oracle Blogs - Search for 'Oracle Blogs'
    Oracle Warehouse Builder was the first ETL product to provide a single integrated and complete environment for managing enterprise data warehouse solutions that also incorporate multi-dimensional schemas. The OWB 11gR2 release provides Oracle OLAP 11g deployment for multi-dimensional models (in addition… >>> More

  • Building dynamic OLAP data marts on-the-fly

    as seen on SQL Blogcasts - Search for 'SQL Blogcasts'
    At the forthcoming SQLBits conference, I will be presenting a session on how to dynamically build an OLAP data mart on-the-fly. This blog entry is intended to clarify exactly what I mean by an OLAP data mart, why you may need to build them on-the-fly and finally outline the steps needed to build… >>> More