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!

DISTINCT COUNT Where Value > 0

Status
Not open for further replies.

Rob999

Programmer
May 23, 2002
98
US
Hi Everyone.

I need to add a calculated measure to my cube file for the number of occurrences of a transaction type based on a key field. If the transaction occurred, there will be a 4 to 5 digit ID, else a 0.

The problem is when I do a Distinct Count by adding a new measure, I can't put a WHERE criteria on it. Clearly I need to add a Calculated Measure via MDX in the cube. Is there an easy way to do this via MDX?

I'm want to create a Distinct EventCount based on non 0 ID numbers in the EventID column.

Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top