dbTalk Databases Forums  

Aggregate? Named Sets

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Aggregate? Named Sets in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Howard Brill
 
Posts: n/a

Default Aggregate? Named Sets - 11-18-2003 , 03:57 PM






We've been trying to use MDX to set up ad hoc groups based
on members. We have successfully used named sets to return
information on individual members of that named set,
however, we need to rollup to a grouping of all of the
members of the named set. Sean Boon responded to one of
us, with the suggestion to use the aggregate function.
One of the problems with this approach is we have to
perform this on calculated members. Also, we've been
requested to do this on four ad hoc groups, so we would
like some way to provide rollups on each of the four
groups. Currently we have defined each of these as a
named set, and then a named set that includes the rest of
the four. While we could redesign our cube for these
groups, we expect to often receive requests for analyses
based on ad hoc groups.

Example:

Select
crossjoin ( {[Report_Period].[All
Report_Period].children},[Measures].[Total Paid],
[Measures].[PMPM],[Measures].[TotalPMPMChng],[PKPY]}) on
columns,

//[Reports] is my named set
crossjoin ({ ([reports]},{[Category].children}) on rows
from Professional.

Reply With Quote
  #2  
Old   
Sean Boon [MS]
 
Posts: n/a

Default Re: Aggregate? Named Sets - 11-19-2003 , 07:36 PM






Hi Howard,

You can use ADDCALCULATEDMEMBERS() MDX function in your set definition so
that the calculated members will be included.

Hope that helps.

Sean


--
Sean

--
Sean Boon
SQL Server BI Product Unit

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Howard Brill" <howardnospam (AT) online (DOT) com> wrote

Quote:
We've been trying to use MDX to set up ad hoc groups based
on members. We have successfully used named sets to return
information on individual members of that named set,
however, we need to rollup to a grouping of all of the
members of the named set. Sean Boon responded to one of
us, with the suggestion to use the aggregate function.
One of the problems with this approach is we have to
perform this on calculated members. Also, we've been
requested to do this on four ad hoc groups, so we would
like some way to provide rollups on each of the four
groups. Currently we have defined each of these as a
named set, and then a named set that includes the rest of
the four. While we could redesign our cube for these
groups, we expect to often receive requests for analyses
based on ad hoc groups.

Example:

Select
crossjoin ( {[Report_Period].[All
Report_Period].children},[Measures].[Total Paid],
[Measures].[PMPM],[Measures].[TotalPMPMChng],[PKPY]}) on
columns,

//[Reports] is my named set
crossjoin ({ ([reports]},{[Category].children}) on rows
from Professional.



Reply With Quote
  #3  
Old   
Howard Taylor [O2OLAP]
 
Posts: n/a

Default Re: Aggregate? Named Sets - 11-20-2003 , 04:28 AM



Howard

Do you mind where the aggregation takes place and also if the set is not an
MS defined set, but an optimised set for MS AS? We allow for ad hoc groups
for users.

Howard.Taylor@ domain below
www.o2olap.com


"Howard Brill" <howardnospam (AT) online (DOT) com> wrote

Quote:
We've been trying to use MDX to set up ad hoc groups based
on members. We have successfully used named sets to return
information on individual members of that named set,
however, we need to rollup to a grouping of all of the
members of the named set. Sean Boon responded to one of
us, with the suggestion to use the aggregate function.
One of the problems with this approach is we have to
perform this on calculated members. Also, we've been
requested to do this on four ad hoc groups, so we would
like some way to provide rollups on each of the four
groups. Currently we have defined each of these as a
named set, and then a named set that includes the rest of
the four. While we could redesign our cube for these
groups, we expect to often receive requests for analyses
based on ad hoc groups.

Example:

Select
crossjoin ( {[Report_Period].[All
Report_Period].children},[Measures].[Total Paid],
[Measures].[PMPM],[Measures].[TotalPMPMChng],[PKPY]}) on
columns,

//[Reports] is my named set
crossjoin ({ ([reports]},{[Category].children}) on rows
from Professional.



Reply With Quote
  #4  
Old   
Howard Brill
 
Posts: n/a

Default Re: Aggregate? Named Sets - 11-20-2003 , 02:32 PM



Do you have a U.S.-based reseller?

Quote:
-----Original Message-----
Howard

Do you mind where the aggregation takes place and also if
the set is not an
MS defined set, but an optimised set for MS AS? We allow
for ad hoc groups
for users.

Howard.Taylor@ domain below
www.o2olap.com


"Howard Brill" <howardnospam (AT) online (DOT) com> wrote in message
news:042201c3ae1e$e4f61410$a401280a (AT) phx (DOT) gbl...
We've been trying to use MDX to set up ad hoc groups
based
on members. We have successfully used named sets to
return
information on individual members of that named set,
however, we need to rollup to a grouping of all of the
members of the named set. Sean Boon responded to one of
us, with the suggestion to use the aggregate function.
One of the problems with this approach is we have to
perform this on calculated members. Also, we've been
requested to do this on four ad hoc groups, so we would
like some way to provide rollups on each of the four
groups. Currently we have defined each of these as a
named set, and then a named set that includes the rest
of
the four. While we could redesign our cube for these
groups, we expect to often receive requests for analyses
based on ad hoc groups.

Example:

Select
crossjoin ( {[Report_Period].[All
Report_Period].children},[Measures].[Total Paid],
[Measures].[PMPM],[Measures].[TotalPMPMChng],[PKPY]}) on
columns,

//[Reports] is my named set
crossjoin ({ ([reports]},{[Category].children}) on rows
from Professional.


.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.