Professional Documents
Culture Documents
St yl e A2
St yl e A2
Dan Pressman, nTuple, LLC 27
Ex ampl e
Ex ampl e
St yl e A2
St yl e A2
Using MDX to sum 17 days and sum 6 months
J uly 17
th
YTD MDX:
SUM(PeriodsToDate([Day].Levels (0) , [Day].CurrentMember
), [TimeSpan].[Per])
+ SUM(PeriodsToDate([Month].Levels (0), PrevMember (
[Month].CurrentMember, Level ) ), ( [TimeSpan].[Per],
[FullMonth]))
Requires 23 bitmap passes through the data:
Dan Pressman, nTuple, LLC 28
Ex ampl e
Ex ampl e
St yl e B1
St yl e B1
Dan Pressman, nTuple, LLC 29
Ex ampl e
Ex ampl e
St yl e B1
St yl e B1
Using MDX to sum 197 days
J uly 17
th
YTD MDX:
SUM(PeriodsToDate([Period].CurrentMember.Level,
[Period].CurrentMember ), [TimeSpan].[Per])
Requires 197 bitmap passes through the data
Dan Pressman, nTuple, LLC 30
Ex ampl e
Ex ampl e
St yl e C1
St yl e C1
Dan Pressman, nTuple, LLC 31
Ex ampl e
Ex ampl e
St yl e C1
St yl e C1
Using MDX to sum 197 days
J uly 17
th
YTD MDX:
SUM(PeriodsToDate([Date].Levels (0) ,
[Date].CurrentMember ), [TimeSpan].[Per])
Requires 197 bitmap passes through the data
Dan Pressman, nTuple, LLC 32
Ex ampl e
Ex ampl e
Bi t map Si zes
Bi t map Si zes
Dan Pressman, nTuple, LLC 33
Ex ampl e
Ex ampl e
St yl e B2
St yl e B2
Using Improved MDX to sum 17 days and sum 6
months
J uly 17
th
YTD MDX:
SUM(tuplerange( ( [Period].CurrentMember.FirstSibling
, [TimeSpan].[Per])
, ( [Period].CurrentMember, [TimeSpan].[Per])))
+ SUM(PeriodsToDate([Period].CurrentMember.Parent.Level,
[Period].CurrentMember.Parent ), [TimeSpan].[Per])
Requires 23 bitmap passes through the data:
Dan Pressman, nTuple, LLC 34
Ex ampl e
Ex ampl e
St yl e C2
St yl e C2
Using Improved MDX to sum 17 days and sum 6
months
J uly 17
th
YTD MDX:
SUM(tuplerange( ( [Date].CurrentMember.FirstSibling
, [TimeSpan].[Per])
, ( [Date].CurrentMember, [TimeSpan].[Per])))
+ SUM(PeriodsToDate([Date].CurrentMember.Parent.Level,
[Date].CurrentMember.Parent ), [TimeSpan].[Per])
Requires 23 bitmap passes through the data:
Dan Pressman, nTuple, LLC 35
Ex ampl e
Ex ampl e
St yl e A3
St yl e A3
Using ASO to roll up
the 17 days
MDX to sum the 6
months
Dan Pressman, nTuple, LLC 36
Ex ampl e
Ex ampl e
St yl e A3
St yl e A3
Using ASO to roll up the 17 days
MDX to sum up the 6 months
J uly 17
th
YTD MDX:
INSERT HERE ******
Requires 7 bitmap passes through the data
Bitmap for the time dimensions increase from 11 to 39 bits
Dan Pressman, nTuple, LLC 37
Ex ampl e
Ex ampl e
St yl e A4
St yl e A4
Using ASO to roll up the
17 days
A separate load of full-
month totals
Then use ASO to roll up
the full-month totals
Dan Pressman, nTuple, LLC 38
Ex ampl e
Ex ampl e
St yl e A4
St yl e A4
Using ASO to roll up the 17 days
A separate load of full-month totals
Then use ASO to roll up the full-month totals
J uly 17
th
YTD MDX:
INSERT HERE ******
Requires 2 bitmap passes through the data
Bitmap for the time dimensions increase from 11 to 45 bits
Dan Pressman, nTuple, LLC 39
Ex ampl e
Ex ampl e
St yl e B4
St yl e B4
Using ASO to
roll up the 17
days
Using ASO to
Roll up the 6
full-months (no
separate load
required)
Dan Pressman, nTuple, LLC 40
Ex ampl e
Ex ampl e
St yl e B4
St yl e B4
Using ASO to roll up the 17 days
Using ASO to Roll up the 6 full-months (no separate
load required)
J uly 17
th
YTD MDX:
INSERT HERE ******
Requires 2 bitmap passes through the data
Bitmap for the time dimensions increase from 12 to 38 bits
Dan Pressman, nTuple, LLC 41
Ex ampl e
Ex ampl e
St yl e B5
St yl e B5
Using a separate
load of monthly
YTD totals
Then use ASO to
roll up the 17
days and the
prior month YTD
Dan Pressman, nTuple, LLC 42
Ex ampl e
Ex ampl e
St yl e B5
St yl e B5
Using a separate load of monthly YTD totals
Then use ASO to roll up the 17 days and the prior
month YTD
J uly 17
th
YTD Simple MDX:
INSERT HERE ******
Requires 1 bitmap passes through the data
Bitmap for the time dimensions increase from 12 to 39 bits
Dan Pressman, nTuple, LLC 43
Ex ampl e
Ex ampl e
St yl e C3
St yl e C3
Using ASO to
roll up the 17
days
MDX to sum up
the 6 months
Dan Pressman, nTuple, LLC 44
Ex ampl e
Ex ampl e
St yl e C3
St yl e C3
Using ASO to roll up the 17 days
MDX to sum up the 6 months
J uly 17
th
YTD MDX:
INSERT HERE ******
Requires 7 bitmap passes through the data
Bitmap for the time dimensions increase from 12 to 38 bits
Dan Pressman, nTuple, LLC 45
Ex ampl e
Ex ampl e
St yl e C5
St yl e C5
Using a separate
load of monthly
YTD totals
Then use ASO to
roll up the 17
days and the
prior month YTD
Dan Pressman, nTuple, LLC 46
Ex ampl e
Ex ampl e
St yl e C5
St yl e C5
Using separate load of monthly YTD totals
Then use ASO to roll up the 17 days and the prior
month YTD
J uly 17
th
YTD Simple MDX:
INSERT HERE ******
Requires 1 bitmap passes through the data
Bitmap for the time dimensions increase from 12 to 39 bits
Dan Pressman, nTuple, LLC 47
ASO Ex ampl e
ASO Ex ampl e
St yl e B5 & C5
St yl e B5 & C5
No Aggregation needed on this dimension
Turn it off
Squeeze the YTDs to get QTDs and HTDs
Rolling time spans require 1 pass in C5 if within
the year and 3 in B5 (if spanning years)
Dan Pressman, nTuple, LLC 48
Ex ampl e
Ex ampl e
St yl e D
St yl e D
Another example which adds the calculation of Average
Daily Balances (ADB). The Monthly YTDs and Monthly
YTD-ADBs are loaded.
Instead of using MDX to redirect the YTD timespans, a
Transparent partion was used from a BSO cube. This
way all of the extra roll ups were hidden from the user.
Dan Pressman, nTuple, LLC 49
ASO Ex ampl e
ASO Ex ampl e
St yl e D
St yl e D
No Aggregation needed on this dimension
Turn it off
Squeeze the YTDs to get QTDs and HTDs
Rolling time spans require 1 pass
Dan Pressman, nTuple, LLC 50
Summar y
Summar y
Let ASO be ASO
Use hidden compound dimensions
Let ASO roll them up
Redirect/translate with MDX to maximize the use of
hidden dimensions
Dan Pressman, nTuple, LLC 51
Q & A
Q & A
Questions, Answers and Discussion
Presenter: Dan Pressman
nTuple, LLC
973 479-5260
DanPress@Optonline.net