dbTalk Databases Forums  

measures of different grains

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


Discuss measures of different grains in the microsoft.public.sqlserver.olap forum.



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

Default measures of different grains - 04-30-2006 , 08:51 PM






Hi everyone

I have 2 cubes, orders and discounts.

Orders are the typical header, detail variety. The header contains the
customer and the details contains the product line items for the order,
including a $ amount.

The orders cube lets me look at the OrderAmount measure by customer,
product and time.

For each order line item, it is possible to give multiple discounts.
For example, volume discount and partner discount could both be applied
to one line item, but only the partner discount may apply to a second
line item.

So the discounts cube is separate to the orders cube, and has all the
same dimensions, plus a Discount dimension, with members like "Volume",
"Partner" etc. The measure is DiscountAmount. It does not have
OrderAmount measure since it's a different grain.

So this is ok, and users can analyse orders and discounts in detail,
but separately.

What I would like to do now, is to show the discount amounts for each
type of discount, and also show it as a percentage of the total
OrderAmount for whatever selection of customer, product and time the
user has made.

For example:

Customer = XYZ Product = ABC Time= 2006
(total OrderAmount for this combination is 100K according to orders
cube)

Discount DiscountAmount %OrdersAmount
Volume $1,000 1%
Partner $20,000 20%


Whats the best way to get this output?

I have tried virtual cube, but when you drill into the discount
dimension it shows only empty cells for measures that are not based on
DiscountAmount.

I thought of rolling up each type of discount as a measure in the
orders cube, but it is hard to maintain (when new discount type comes
along) and makes for many measures.

Any help would be appreciated. I am on AS2000

Cheers,
Tim


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.