MDX Drill Through on Calculated Members

Hi All,

I need help with MDX.

I have to Write a MDX Query that fetches me the customers who purchased in  both categories a and b.
I tried writing a calculated member that counts the customers in both a and b using intersect and count function but i am unable to drillthrough.

WITH MEMBER [Measures].[Cont1+2 count] AS (
([Products].[category].&[Film/TV],[Measures].[NoOfCustomers] )),
([Products].[category].&[Games], [Measures].[NoOfCustomers])))))
FROM [Cube]
WHERE ([Measures].[Cont1+2 count])

This code gives me the count of customers who purchased both a and b but it doesn't give the customers who are contributing to the count.

I searched the forums and found that we cannot drillthrough a calculated member.

Can someone suggest me an alternative method Please.

Thanks in Advance

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Visu18Author Commented:
I got the solution

[Customers].[Customer Key].[Customer Key].members,
([Products].[category].&[Film/TV],[Measures].[NoOfCustomers] )),
(Intersect(NONEMPTY([Customers].[Customer Key].[Customer Key].members,
([Products].[category].[CM Category].&[Music], [Measures].[NoOfCustomers])),
NONEMPTY([Customers].[Customer Key].[Customer Key].members,
([Vw Products].[category].&[Games], [Measures].[NoOfCustomers]))))) ON ROWS
FROM [Cube]

This gives me the customers that are in both categories.
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.