Practical MDX for Essbase Developers • 195
is is obviously more complicated, but as the logic gets more complicated it
becomes necessary. Let us say you wanted to lter for periods that begin with the
letter “J”:
SELECT
{[Sales]} ON COLUMNS,
{Filter([Year].members,
Substring([Year].CurrentMember.Member_Name, 1, 1) =
"J")}ON ROWS
FROM Sample.Basic
Axis-1 (Sales)
+-------------------+-------
(Jan) 32538
(Jun) 35088
(Jul) 36134
Or, going back to our issue of only returning Sales that are greater than 100,000:
SELECT
{[Sales]} ON COLUMNS,
{Filter([Year].members, [Sales] > 100000)} ON ROWS
FROM Sample.Basic
Axis-1 (Sales)
+-------------------+-------
(Year) 401855
(Qtr2) 101679
(Qtr3) 105215
Note: is is one of the few times when you can make refer ...