Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Analysis Services (2000)
 children of multiple members at same level

Author  Topic 

Tim
Starting Member

392 Posts

Posted - 2001-12-12 : 17:32:04
Here is a simple example data set:



CustName Location Cafe Restaurant Takeaway SalesDollars
------------------------------------------------------------------
The Views Ballarat Yes Yes No 250
Fast Eddies Melbourne Yes No Yes 500
Olive Grove Ballarat Yes Yes No 1000



Can anyone make a cube that gives these results??



View1 - Customer Type by Sales

Cafe $1750
Restaurant $1250
Takeaway $500
-----------------
Total $1750


View 2 - Customer Location by Sales

Ballarat $1250
Melbourne $500
-----------------
Total $1750



Edited by - tim on 12/12/2001 18:59:31

Tim
Starting Member

392 Posts

Posted - 2001-12-13 : 22:33:27
it would seem not... me included
Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2001-12-13 : 22:49:52
Well the view2 is no problem.. just make "Location" a dimension..

View1 is another matter all together...

First build a table with the "Eatery type".. turn it into a dimension
Create a view using the customer data and the "Eatery Type"

And SalesDollars is your measure (Sum)

DavidM

"Why are you crying?"

"Because I love a Microsoft product"
Go to Top of Page

Tim
Starting Member

392 Posts

Posted - 2001-12-14 : 10:16:50
David not that easy.

You can't use any regular rollups because it will double count in the "Eatery type dimension"

I put the location dimension there just to make it difficult.I can get it to work with each of the dimensions separately but not both together.



Go to Top of Page

byrmol
Shed Building SQL Farmer

1591 Posts

Posted - 2001-12-17 : 17:18:28
Tim, can't you use a distinct count measure?

DavidM

"Why are you crying?"

"Because I love a Microsoft product"
Go to Top of Page

Tim
Starting Member

392 Posts

Posted - 2001-12-18 : 18:31:53
well distinct count does the trick, but I need a sum not a count. If there were a "Distinct Sum" I would be fine but there is no such animal.

The answer will be calculated members, but the MDX required is beyond me at this stage. I am reading and learning though. I have the plan just no the ability to execute :) (yet)



Go to Top of Page
   

- Advertisement -