dbTalk Databases Forums  

Re: 2 fields in same level should display on same row

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


Discuss Re: 2 fields in same level should display on same row in the microsoft.public.sqlserver.olap forum.



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

Default Re: 2 fields in same level should display on same row - 08-15-2003 , 03:03 PM







How a level can be defined by two columns


--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Matt Carroll [MS]
 
Posts: n/a

Default Re: 2 fields in same level should display on same row - 08-15-2003 , 08:53 PM






The ID should probably be the key of the Region level. Some client tools
then might already allow you to do this. Otherwise you could define ID as a
member property as well, and then some more client tools would allow you to
generate such a report. You don't want Region ID and Region Name to be
seperate Dimensions or Levels because they have a 1-to-1 relationship and
having both verses just one does not change the dimensional size and shape
of the cube.

Hope this helps,
- Matt Carroll
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"devnoronha" <member33654 (AT) dbforums (DOT) com> wrote

Quote:
i have a table which has
10 NY
20 LA
30 London
i need to display the sales in each city
10 NY 500
20 LA 600
30 London 300

10 and NY are on the same level . but when i select like
select {[Region].[Region ID].Members, [Region].[Region Name].Members} on
rows it displays

10 500
20 600
30 300
NY 500
LA 600
London 300

is the solution in the 'select' statement or in the cube design ?
Thanks

--
Dev Noronha


Posted via http://dbforums.com



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.