[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

a very dificult measures in MDX

Asked by rauljimenez in OLAP, SQL Server 2005

Tags: MDX

How can I make ONE measures in MDX to calculate A. the diferents materials in the last year with o without stock and B.the different materials with stock from one year backward?
the A and B join in one.

explain....
the measures mdx  diferent materials (but from the beginning)  is :
count(distinct([Olap].[material].[material].members))

but i want from last one year. ¿? I dont konow to do.

the measures stock is :
Sum(        
PeriodsToDate([Time].[Year -  Trimester -  Month -  Date].[(All)]  
       ,[Time].[Year -  Trimester -  Month -  Date].currentmember),
[Measures].[qty]
)
and the measures diferents materials from today to begining of time  with stock is :
count(distinct(filter([Olap].[material].[material].members,[Measures].[stock]<>0)))

I want do a measures that calculate the diferents materials from begining of time  to one year ago with stock and from one year ago to today with stock or without stock .

like this more or less :   count(diferent(A+B))

I think is imposible but who knows  
[+][-]10/30/09 08:18 AM, ID: 25703813Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 04:16 AM, ID: 25718711Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625