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!

MDX Query - Count Of

Status
Not open for further replies.

dky1e

Programmer
May 4, 2002
293
US
Hi,

Let's say i have a measure that is the Average of values in the cube and then another a distinct count of customers.

So, for example
Code:
PRODUCT   NUM_CUST    AVG_PRICE
A         20          $400
B         10          $500
Now, I want to add a calculated member that would do a distinct count (as customers can purchase more than once) and give me the number of customers that paid within 10% of the average price.

Is it possible? Please provide a quick sample mdx i could learn from.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top