MDX Question - Calculated Measure

MDX Question - Calculated Measure

Post by John » Sun, 13 Jan 2002 01:56:28



Does anyone know if I can do the following calculation in
AS, and if so how.
I am trying to calculate delq. %, however I have cycles
delq. as a dimension.

What I need to do would be something like this:
Total Balances / n cycle past due balance

Thanks for any help.

 
 
 

MDX Question - Calculated Measure

Post by Denny Le » Wed, 16 Jan 2002 06:00:11


Hi John,

I'm afraid I'm not too sure if I understand the question correctly - are you
trying to calculate the a measure based on a dimension against the total
amount of that dimension?  If this is what you are trying to calculate,
here's some MDX I've written to do this based on the HR cube within the
Foodmart 2000 database:
with
member [Measures].[All Count] as '([Measures].[Count], [Department].[All
Department])'
member [Measures].[Calculation] as '([Measures].[Count]/[Measures].[All
Count])', FORMAT_STRING='0.00%'
select {
  [Measures].[Count]
 ,[Measures].[All Count]
 ,[Measures].[Calculation]

Quote:} on columns, {

  [Department].children
Quote:} on rows

from [HR]

Note, the [Measures].[All Count] is a calculated member that determines the
total [Measures].[Count] value for the entire department dimension (instead
of it being broken out). This calculated member allows us to create the
[Measures].[Calculation] calculated member which will allow you to calculate
each dimension member's count against the overall count.

If this is not the case, could you please clarify what it is you would like
to solve?

Regards,
denny :-)


Quote:> Does anyone know if I can do the following calculation in
> AS, and if so how.
> I am trying to calculate delq. %, however I have cycles
> delq. as a dimension.

> What I need to do would be something like this:
> Total Balances / n cycle past due balance

> Thanks for any help.


 
 
 

MDX Question - Calculated Measure

Post by John » Thu, 17 Jan 2002 00:43:08


Denny,
Thanks for your reply. I tried to create the total count
measure with the below formula but I get a syntax error.
Do you know why?

[Measures].[Accounts],[Account Age].[All]

Thanks again,
John

[Measures].[Accounts],[Account Age].[All]

Quote:>-----Original Message-----
>Hi John,

>I'm afraid I'm not too sure if I understand the question
correctly - are you
>trying to calculate the a measure based on a dimension
against the total
>amount of that dimension?  If this is what you are trying
to calculate,
>here's some MDX I've written to do this based on the HR
cube within the
>Foodmart 2000 database:
>with
>member [Measures].[All Count] as '([Measures].[Count],
[Department].[All
>Department])'
>member [Measures].[Calculation] as '([Measures].[Count]/
[Measures].[All
>Count])', FORMAT_STRING='0.00%'
>select {
>  [Measures].[Count]
> ,[Measures].[All Count]
> ,[Measures].[Calculation]
>} on columns, {
>  [Department].children
>} on rows
>from [HR]

>Note, the [Measures].[All Count] is a calculated member
that determines the
>total [Measures].[Count] value for the entire department
dimension (instead
>of it being broken out). This calculated member allows us
to create the
>[Measures].[Calculation] calculated member which will

allow you to calculate

- Show quoted text -

>each dimension member's count against the overall count.

>If this is not the case, could you please clarify what it
is you would like
>to solve?

>Regards,
>denny :-)



>> Does anyone know if I can do the following calculation
in
>> AS, and if so how.
>> I am trying to calculate delq. %, however I have cycles
>> delq. as a dimension.

>> What I need to do would be something like this:
>> Total Balances / n cycle past due balance

>> Thanks for any help.

>.

 
 
 

MDX Question - Calculated Measure

Post by Denny Le » Thu, 17 Jan 2002 04:39:43


Oh, this depends on the way you've setup the dimension - but I believe the
syntax of below is
([Measures].[Accounts], [Account Age].[All Account Age])

HTH!


> Denny,
> Thanks for your reply. I tried to create the total count
> measure with the below formula but I get a syntax error.
> Do you know why?

> [Measures].[Accounts],[Account Age].[All]

> Thanks again,
> John

> [Measures].[Accounts],[Account Age].[All]
> >-----Original Message-----
> >Hi John,

> >I'm afraid I'm not too sure if I understand the question
> correctly - are you
> >trying to calculate the a measure based on a dimension
> against the total
> >amount of that dimension?  If this is what you are trying
> to calculate,
> >here's some MDX I've written to do this based on the HR
> cube within the
> >Foodmart 2000 database:
> >with
> >member [Measures].[All Count] as '([Measures].[Count],
> [Department].[All
> >Department])'
> >member [Measures].[Calculation] as '([Measures].[Count]/
> [Measures].[All
> >Count])', FORMAT_STRING='0.00%'
> >select {
> >  [Measures].[Count]
> > ,[Measures].[All Count]
> > ,[Measures].[Calculation]
> >} on columns, {
> >  [Department].children
> >} on rows
> >from [HR]

> >Note, the [Measures].[All Count] is a calculated member
> that determines the
> >total [Measures].[Count] value for the entire department
> dimension (instead
> >of it being broken out). This calculated member allows us
> to create the
> >[Measures].[Calculation] calculated member which will
> allow you to calculate
> >each dimension member's count against the overall count.

> >If this is not the case, could you please clarify what it
> is you would like
> >to solve?

> >Regards,
> >denny :-)



> >> Does anyone know if I can do the following calculation
> in
> >> AS, and if so how.
> >> I am trying to calculate delq. %, however I have cycles
> >> delq. as a dimension.

> >> What I need to do would be something like this:
> >> Total Balances / n cycle past due balance

> >> Thanks for any help.

> >.

 
 
 

1. MDX Question - Calculated Measure

I want to create a calculated measure conditionally based on the value of
one of the cubes measures. Basically, I want to be able to count $0 values.
I am still new to MDX, but have read everything I can and only seem to get
similar examples if the condition also includes a dimension. I'm sure this
has to be simpler than I am making it.

Steve

2. DNS-less connection to MS Access

3. Urgetn MDX question - Calculated measure depends on another dimension members

4. BOOL & BYTE

5. Calculated Measure MDX Question

6. Stored Procedure code

7. mdx calculated measure

8. Internetivity changes its name

9. MDX calculated measure

10. Return base and calculated measures in MDX

11. mdx calculated measure - formula needed

12. How create mdx percent calculated measure

13. calculated measures / mdx problem