dbTalk Databases Forums  

Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error

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


Discuss Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error in the microsoft.public.sqlserver.olap forum.



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

Default Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error - 12-16-2003 , 05:42 PM






Hi,

I need some help in making a named set.

I have a named set as below. It works fine.
TopCount([All Product Categories], 10)


I want to change it to:
TopCount([All Product Categories], 10, [Measures].[Sales])

Analysis Manager gives me an error - says - Formula Error - ("")
required entity missing.

Can anyone please point me to the right direction? What am I doing
wrong?
Would greatly appreciate it.
Thanks

Reply With Quote
  #2  
Old   
Thomas Ivarsson
 
Posts: n/a

Default Re: Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error - 12-17-2003 , 12:47 AM






You need a set in the topcount function, like
TopCount([Product].[Category].members, 10, [Measures].[Sales])
In your syntax I think you are pointing at a level and [All Product
Categories].members will help you if you have 10 members at that level.

HTH
Thomas Ivarsson
BI Consultant Malmö Sweden

"Harsh" <creative (AT) mailcity (DOT) com> wrote

Quote:
Hi,

I need some help in making a named set.

I have a named set as below. It works fine.
TopCount([All Product Categories], 10)


I want to change it to:
TopCount([All Product Categories], 10, [Measures].[Sales])

Analysis Manager gives me an error - says - Formula Error - ("")
required entity missing.

Can anyone please point me to the right direction? What am I doing
wrong?
Would greatly appreciate it.
Thanks



Reply With Quote
  #3  
Old   
Harsh
 
Posts: n/a

Default Re: Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error - 12-17-2003 , 09:19 AM



[All Product Categories]
is actually a named set - [Product].[Category].members

Reply With Quote
  #4  
Old   
Thomas Ivarsson
 
Posts: n/a

Default Re: Named Set: TopCount([All Product Categories], 10, [Measures].[Sales]) - gives error - 12-17-2003 , 12:33 PM



OK. Replace [All Product Categories] with [Product].[Category].members or
try [Product].[All Product Categories] / {[Product].[All Product
Categories]}

HTH
/Thomas

"Harsh" <creative (AT) mailcity (DOT) com> wrote

Quote:
[All Product Categories]
is actually a named set - [Product].[Category].members



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.