the Problem is that OWC is displaying wrong Total results, when setting the
filter (in OCW Pivottable manually) on time dimension (eg. only Quarters Q1,
Q2, Q3 in 2004). This applies to Previous Year Values calculated via:
([MEASURES].[Sales], ParalellPeriode([TIME].[YEAR],1))
Time Dimension in this scenario consists of (Year, Quarter, Month, Day).
Data is loaded always on day level and aggregated up.
> "the Filter set in current year"
Meant that All Level of Time dimension has been disabled and includedmembers
(filter) has been set to [2004].[Q1], [2004].[Q2], [2004].[Q3] .
So actual Sales Sum for the total Level (2004) Sums up the first 3 included
Quarters (as shown in the example).
Example assuming sales for Q1=1000, Q2=2000 and so on, in both of the years
SALES S_YTD S_PREV S_PREV_YTD
2004
Q1 1000 1000 1000 1000
Q2 2000 3000 2000 2000
Q3 3000 6000 3000 3000
SUM 2004 6000 6000 10000 10000
==== ====
10000 is wrong in this case, it also should display 6000, summing up Q1-Q3
in the last year. The Previous Year Value should also care about the filter,
displaying the parallel of only the filtered quarters in 2004.
This seems to me to be a OWC Bug which I urgently have to fix.
Deepak and Ohjoo came up with really good solutions, which unfortunately
only work, when Time dimension is in Rows (and furthermore not combined with
any other dimension).
I believe that much more user experience the same problem/bug (as previous
year values should be a common business scenario) and I'd like to ask the
community if there is already a solution or if anyone can think of a solution
for this where it doesn't matter if time dimension is in filter, row or
colums.
Best regards
Monte
Hopefully this will work for you! By creating a real measure rather than a
calculated measure you ensure that the VISUALTOTALS functionality which Excel
and OWC uses to calculate subtotals works as you want; the calculated cell
just inserts the previous period values over the dummy value of 0 in this
measure.
It's not an elegant solution and carries the risk of a) increased cube size,
and b) reduced query performance, as a result of the calculated cell, but if
your cube is fairly simple then with a bit of luck these shouldn't be issues
for you.
HTH,
Chris
But I checked the license version of my customers SQL-Server and just as I
was afraid of ... it is a just standard edition ... so I cannot use
calculated cells to work this around :-|
Any other clues?
Best regards!
You said your idea is not an elegant solution, but it's very wonderful idea
indeed!
Do you have any more information on visual totals with calculated members?
I have a curiosity to know that this issue is dependent on just client tools
or so-called by-design of analysis services.
Ohjoo Kwon
"Chris Webb" <OnlyForPostin...@hotmail.com> wrote in message
news:AFBCF3D5-B5E7-4FA4...@microsoft.com...
- Create a view of the fact table where 1 Year is added to the Date key
(for Foodmart, 365 is added to time_id).
- Create a second cube, copied from first, with this view as fact
table. Retain only measures whose previous year values are required,
renaming them (like SalesPrevYear).
- Combine the 2 cubes into a virtual cube, with all original dimensions
and measures + the PrevYear measures.
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***
Chris
I'll have to check how data-volume growth and above all query performance is
affected by this step, but I'm confident that it will even response more
quickly than complex mdx.
Above all I'd like to thank the community especially all those who have
answered my posts, really going into my case, trying hard to find various
very decent solutions!!
Thanks for your time and thoughts!
Best regards!