dbTalk Databases Forums  

How to use TopCount in Calculated member?

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


Discuss How to use TopCount in Calculated member? in the microsoft.public.sqlserver.olap forum.



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

Default How to use TopCount in Calculated member? - 09-22-2003 , 02:34 PM






I have a dimension say Issues with 100 members.
I wanted to have a calculated member which gives me the Top 10 Issues.
I want to use this calculated member in Excel Pivot table ( by drag-drop).

I am able to get the desired result by using the following MDX query
Select
{Count} ON COLUMNS,
{TopCount({[Issues].Members}, 10, [Count])} ON ROWS
From Customer


But how do i make this as a calculated member.

Thanks
-BizWiz

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: How to use TopCount in Calculated member? - 09-22-2003 , 03:15 PM






A calculated member can be a calculation based on the top10 (i.e. sum or
average), but a member can't contain multiple members. Maybe a named set is
what you want? Named sets are defined in the cube editor, like calc
members -- you've already got the expression.

tom @ the domain below
www.tomchester.net


"BizWiz" <sundaresa (AT) hotmail (DOT) com> wrote

Quote:
I have a dimension say Issues with 100 members.
I wanted to have a calculated member which gives me the Top 10 Issues.
I want to use this calculated member in Excel Pivot table ( by drag-drop).

I am able to get the desired result by using the following MDX query
Select
{Count} ON COLUMNS,
{TopCount({[Issues].Members}, 10, [Count])} ON ROWS
From Customer


But how do i make this as a calculated member.

Thanks
-BizWiz



Reply With Quote
  #3  
Old   
Tom Chester
 
Posts: n/a

Default Re: How to use TopCount in Calculated member? - 09-22-2003 , 03:17 PM



p.s. Unfortunately named sets are NOT available in pivottable.

tom @ the domain below
www.tomchester.net


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
A calculated member can be a calculation based on the top10 (i.e. sum or
average), but a member can't contain multiple members. Maybe a named set
is
what you want? Named sets are defined in the cube editor, like calc
members -- you've already got the expression.

tom @ the domain below
www.tomchester.net


"BizWiz" <sundaresa (AT) hotmail (DOT) com> wrote in message
news:7e8783e1.0309221134.52ba8d36 (AT) posting (DOT) google.com...
I have a dimension say Issues with 100 members.
I wanted to have a calculated member which gives me the Top 10 Issues.
I want to use this calculated member in Excel Pivot table ( by
drag-drop).

I am able to get the desired result by using the following MDX query
Select
{Count} ON COLUMNS,
{TopCount({[Issues].Members}, 10, [Count])} ON ROWS
From Customer


But how do i make this as a calculated member.

Thanks
-BizWiz





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.