dbTalk Databases Forums  

How get flatten query

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


Discuss How get flatten query in the microsoft.public.sqlserver.olap forum.



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

Default How get flatten query - 06-15-2005 , 06:44 AM






I have in example one dimension with 3 levels
COMPANY (ex. TR,ZR)
NETWORK (ex. E,B)
NAME ( ex. steve, John)

and Sales fact

i want to get result like


Company |Network|Name | Sales
--------------------------------
TR |E |steve | 100
ZR |B |john | 200
TR |B |adam | 300

to export data to table

how can i get this ?





Reply With Quote
  #2  
Old   
OLAPMonkey (http://olapmonkey.blogspot.com/)
 
Posts: n/a

Default Re: How get flatten query - 06-15-2005 , 10:12 AM






select
{
[Measures].[Sales]
} on columns,
{
[Company].Members *
[Network].Members *
[Name].Members
} on rows
from MyCube

Bartosz Gorzynski wrote:
Quote:
I have in example one dimension with 3 levels
COMPANY (ex. TR,ZR)
NETWORK (ex. E,B)
NAME ( ex. steve, John)

and Sales fact

i want to get result like


Company |Network|Name | Sales
--------------------------------
TR |E |steve | 100
ZR |B |john | 200
TR |B |adam | 300

to export data to table

how can i get this ?


Reply With Quote
  #3  
Old   
Bartosz Gorzynski
 
Posts: n/a

Default Re: How get flatten query - 06-16-2005 , 03:13 AM



Not works - i get message "Unable to open cellset.
Formula error - duplicate dimensions across (independent) axes -
in a <set> base objectMyDimension"



OLAPMonkey (http://olapmonkey.blogspot.com/) napisal(a):
Quote:
select
{
[Measures].[Sales]
} on columns,
{
[Company].Members *
[Network].Members *
[Name].Members
} on rows
from MyCube

Bartosz Gorzynski wrote:

I have in example one dimension with 3 levels
COMPANY (ex. TR,ZR)
NETWORK (ex. E,B)
NAME ( ex. steve, John)

and Sales fact

i want to get result like


Company |Network|Name | Sales
--------------------------------
TR |E |steve | 100
ZR |B |john | 200
TR |B |adam | 300

to export data to table

how can i get this ?



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.