220 • Developing Essbase Applications: Advanced Techniques for Finance and IT Professionals
Axis-1
+-------------------
(East)
(New York)
(Massachusetts)
(Florida)
(California)
(Texas)
(Central)
(Illinois)
(Ohio)
(Colorado)
is is an example of how to combine functions to further scope the query.
SELECT {} ON AXIS(0),
{FILTER({Uda([Market], "Major Market")},
Substring([Market].CurrentMember.Member_Name, 1, 3) =
"New")} ON AXIS(1)
FROM [Sample.Basic];
Axis-1
+-------------------
(New York)
6.10.1.13 Counts with UDAs and Attributes Again, using counts can yield useful infor-
mation about the database outline. is query returns the count of members with a
particular attribute.
WITH
MEMBER
[Geography].[AreaCode719Count] AS
'Count(Withattr([Area Code], ...