Re: Query Optimization -
03-31-2004
, 07:28 PM
Hi Audrey,
What is the grain of the fact table? Assuming that there are a large
number of [Cases] , which is causing a performance problem, you can
define a view on the fact table that returns 1 record per leaf [Case],
with [Total LOS] and [ELOS] summed up. Then you can define a cube w/ a
measure on this view, whose source column is defined as:
case when [Total LOS] > [ELOS]
then [Total LOS] - [ELOS]
else 0 end
This measure can be aggregated as 'Sum', without any MDX calculation,
and made available in a virtual cube.
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! |