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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculated Member Builder

Status
Not open for further replies.

Rob999

Programmer
May 23, 2002
98
US
Hi everyone. In my fact table I have numerous transaction type records each related to a specific customer via their account number. I can sum the results of their transactions, but when I try to create a measure that's a DistinctCount of their account numbers (to see how many there are by type and period) via the pulldown in the properties box in the Cube Editor, I get an Excel '#VALUE' type error in the totals when I deselect any of the members of a Dimension. It totals correctly only when all members are selected, so I'm looking to do a calculated member instead - maybe it'll help???

I've created numerous calculated members where its simply 'Sales$ / Customers', but when I try to incorporate &quot;DistinctCount([Measures].[Acct])&quot; the syntax checker gives me a Syntax error near the closing parenthesis. Selecting DistinctCount from the Function List produces a &quot;<<Set>>&quot; template and when I double click on my Acct measure it fits nicely inside automatically, but then it bombs on the syntax check.

The book I have shows using an MDX example to create a SPECIFIC resultset, but I need this to be calculated on the fly as the user interacts with the pivot table - not with fixed columns or rows. Does anyone know the syntax to use the Distinct Count function of a Measure within the Calculated Member Builder? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top