dbTalk Databases Forums  

Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Learner
 
Posts: n/a

Default Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer - 05-05-2004 , 04:26 AM






Hi,

I want to see the YTD sales regardless of what time period I have
selected in my Time Dimension. i.e. If the to-date total Sales are
$100, then even if I have selected March-2004 in my Time Dimension, I
still want to see this $ 100 as YTD (of course in addition to other
columns...)

Using the built-in "Business Center" functionality of MSDA, there is
something labelled as "Year To Date-BC-(e)" and this gives me the
desired results. BUT I do not like the label and want to change it...
for this I need to know what should be the underlying MDX? I tried all
of the following but these do not give me the YTD sales and instead give
me the YTD sales at/till the selected time period:

1) LengthMeasure
2) iif(Current dimension.name=Open Time dimension.name,null,(Length
measure,Open Time dimension.currentmember))


I'll appreciate your urgent reply.


--
Thanks.

Reply With Quote
  #2  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer - 05-05-2004 , 02:42 PM






put this in a calculated member:

iif([Tid].currentmember.level is [År],[Measures].[Budget
Beløb],ancestor([Tid].currentmember, [Tid].[År]))

sorry bout the danish....replace År with the name of the year-level in your
time dimension....replace the measure with your desired measure...

Hope it helps

\Michael Vardinghus

"Learner" <wantnospam (AT) email (DOT) com> skrev i en meddelelse
news:MPG.1b030933407b5dbc989717 (AT) msnews (DOT) microsoft.com...
Quote:
Hi,

I want to see the YTD sales regardless of what time period I have
selected in my Time Dimension. i.e. If the to-date total Sales are
$100, then even if I have selected March-2004 in my Time Dimension, I
still want to see this $ 100 as YTD (of course in addition to other
columns...)

Using the built-in "Business Center" functionality of MSDA, there is
something labelled as "Year To Date-BC-(e)" and this gives me the
desired results. BUT I do not like the label and want to change it...
for this I need to know what should be the underlying MDX? I tried all
of the following but these do not give me the YTD sales and instead give
me the YTD sales at/till the selected time period:

1) LengthMeasure
2) iif(Current dimension.name=Open Time dimension.name,null,(Length
measure,Open Time dimension.currentmember))


I'll appreciate your urgent reply.


--
Thanks.



Reply With Quote
  #3  
Old   
Learner
 
Posts: n/a

Default Re: Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer - 05-06-2004 , 04:09 AM



Michael thanks for the reply but it's not working When I entered your
suggestions (after adjusting the Danish parts) in the 'Template Measure
Editor" of Microsoft Data Analyzer, I get an error dialog saying that
"Template Failed Validation"

There are things that i LOVE about Microsoft Data Analyzer and then
there are things that I hate

The names of my Dimensions are 'Time' and 'Product" and the name of the
measure is 'Total Sale'.

Can you please help given the above additional information?

Thanks.


Quote:
|put this in a calculated member:
|
|iif([Tid].currentmember.level is [År],[Measures].[Budget
|Beløb],ancestor([Tid].currentmember, [Tid].[År]))
|
|sorry bout the danish....replace År with the name of the year-level inyour
|time dimension....replace the measure with your desired measure...
|
|Hope it helps
|
|\Michael Vardinghus
|
|"Learner" <wantnospam (AT) email (DOT) com> skrev i en meddelelse
|news:MPG.1b030933407b5dbc989717 (AT) msnews (DOT) microsoft.com...
|> Hi,
|
|> I want to see the YTD sales regardless of what time period I have
|> selected in my Time Dimension. i.e. If the to-date total Sales are
|> $100, then even if I have selected March-2004 in my Time Dimension, I
|> still want to see this $ 100 as YTD (of course in addition to other
|> columns...)
|
|> Using the built-in "Business Center" functionality of MSDA, there is
|> something labelled as "Year To Date-BC-(e)" and this gives me the
|> desired results. BUT I do not like the label and want to change it...
|> for this I need to know what should be the underlying MDX? I tried all
|> of the following but these do not give me the YTD sales and instead give
|> me the YTD sales at/till the selected time period:
|
|> 1) LengthMeasure
|> 2) iif(Current dimension.name=Open Time dimension.name,null,(Length
|> measure,Open Time dimension.currentmember))
|
|
|> I'll appreciate your urgent reply.
|
|
|> --
|> Thanks.
|
|
|

Reply With Quote
  #4  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: Urgent MDX Question - Generic yet a bit specific to Microsoft Data Analyzer - 05-06-2004 , 11:15 AM



Don't know analyzer....is it based on top of an olap base ?

Then you can create a calculated member in the as base in the cube - then
the syntax will work ... i'm using it myself.

\Michael V.


"Learner" <wantnospam (AT) email (DOT) com> skrev i en meddelelse
news:MPG.1b044898d6566b1d98971a (AT) msnews (DOT) microsoft.com...
Michael thanks for the reply but it's not working When I entered your
suggestions (after adjusting the Danish parts) in the 'Template Measure
Editor" of Microsoft Data Analyzer, I get an error dialog saying that
"Template Failed Validation"

There are things that i LOVE about Microsoft Data Analyzer and then
there are things that I hate

The names of my Dimensions are 'Time' and 'Product" and the name of the
measure is 'Total Sale'.

Can you please help given the above additional information?

Thanks.


Quote:
|put this in a calculated member:
|
|iif([Tid].currentmember.level is [År],[Measures].[Budget
|Beløb],ancestor([Tid].currentmember, [Tid].[År]))
|
|sorry bout the danish....replace År with the name of the year-level in
your
|time dimension....replace the measure with your desired measure...
|
|Hope it helps
|
|\Michael Vardinghus
|
|"Learner" <wantnospam (AT) email (DOT) com> skrev i en meddelelse
|news:MPG.1b030933407b5dbc989717 (AT) msnews (DOT) microsoft.com...
|> Hi,
|
|> I want to see the YTD sales regardless of what time period I have
|> selected in my Time Dimension. i.e. If the to-date total Sales are
|> $100, then even if I have selected March-2004 in my Time Dimension, I
|> still want to see this $ 100 as YTD (of course in addition to other
|> columns...)
|
|> Using the built-in "Business Center" functionality of MSDA, there is
|> something labelled as "Year To Date-BC-(e)" and this gives me the
|> desired results. BUT I do not like the label and want to change it...
|> for this I need to know what should be the underlying MDX? I tried all
|> of the following but these do not give me the YTD sales and instead
give
|> me the YTD sales at/till the selected time period:
|
|> 1) LengthMeasure
|> 2) iif(Current dimension.name=Open Time dimension.name,null,(Length
|> measure,Open Time dimension.currentmember))
|
|
|> I'll appreciate your urgent reply.
|
|
|> --
|> Thanks.
|
|
|



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.