dbTalk Databases Forums  

Scenario dimension troubles - how to use an adjustment factor

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


Discuss Scenario dimension troubles - how to use an adjustment factor in the microsoft.public.sqlserver.olap forum.



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

Default Scenario dimension troubles - how to use an adjustment factor - 07-17-2003 , 06:18 PM






I have a scenario dimension with one member 'ACTUAL' that repeats on
every row in the source table. I would like to add a calc. member in
the scenario dimension that, when chosen, will modify any measure by
an adjustment factor (member called 'ADJUSTED'). The factor is
another column in the source table. So the end result would be 'any
measure'/'adjustment factor'.

Appreciate any help on the approach or MDX syntax, thanks.

Reply With Quote
  #2  
Old   
Matt Carroll [MS]
 
Posts: n/a

Default Re: Scenario dimension troubles - how to use an adjustment factor - 07-19-2003 , 01:54 PM







If the adjustment column is in the fact table you can create a hidden
measure and then create a calculated member that uses this hidden measure.
If the adjustment column is in a dimension table, you can create a member
property and use that in your calculated member.

If the adjustment column is in the fact table, you can also define a regular
measure and use a SQL expression in the measures SourceColumn property to do
the calculation. This calculation needs to be in the syntax of the
appropriate data source's SQL. This has the advantage that the calculation
will occur only once at processing time which will help query performance.
However, since this calculation is simple and can be applied after
aggregation as a calculated member there will probably be very little
difference in performance.

Hope this helps,
- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"switherman" <switherman (AT) hotmail (DOT) com> wrote

Quote:
I have a scenario dimension with one member 'ACTUAL' that repeats on
every row in the source table. I would like to add a calc. member in
the scenario dimension that, when chosen, will modify any measure by
an adjustment factor (member called 'ADJUSTED'). The factor is
another column in the source table. So the end result would be 'any
measure'/'adjustment factor'.

Appreciate any help on the approach or MDX syntax, 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.