dbTalk Databases Forums  

Display Named Sets Set name

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


Discuss Display Named Sets Set name in the microsoft.public.sqlserver.olap forum.



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

Default Display Named Sets Set name - 11-18-2003 , 10:18 AM






I have finally been able to call a Named Set from Analysis Services
via the MDX sample application, but I receive all the detail. I only
want to see the Named set itself and not want is defined within it.
How do I do this?

Sample:

select
crossjoin ( {[Report_Period].[All Report_Period].children},{
[Measures].[Total Paid],[Measures].[PMPM],[Measures].[TotalPMPMChng],[Measures].[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: Display Named Sets Set name - 11-18-2003 , 01:55 PM






You accomplish that by using the aggregate function. Add the following to
your MDX statement

With member [YourDimension].[MyAggregate] as 'AGGREGATE({[Reports]})'

Then reference that calculated member in your query instead of your named
set.


--
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.

"AudreyR" <arachunok (AT) monroeplan (DOT) com> wrote

Quote:
I have finally been able to call a Named Set from Analysis Services
via the MDX sample application, but I receive all the detail. I only
want to see the Named set itself and not want is defined within it.
How do I do this?

Sample:

select
crossjoin ( {[Report_Period].[All Report_Period].children},{
[Measures].[Total
Paid],[Measures].[PMPM],[Measures].[TotalPMPMChng],[Measures].[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.