Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using count() and crossjoin() to return distinct counts

Status
Not open for further replies.

ariesnw

Programmer
May 12, 2005
1
US
In my AS cube, I've created a calculated measure using the following MDX:
Count(Crossjoin({[Measures].[Number of hits]},
Descendants([Area].Currentmember, [Area].[User Name])),
Excludeempty)
As expected, the measure provides the number of unique users for each area visited (based on logs from a web site). The problem I'm having is that the total number of unique users for ALL areas visited appears to be the sum of the
unique users from each area, rather than simply being the total number of unique users. Anyone have any suggestions on how to get the cube to calculate correctly at the ALL level?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top