Showing posts with label transaction. Show all posts
Showing posts with label transaction. Show all posts

Wednesday, March 7, 2012

Price Aggregation Question

Hi all,

I have a cube that has time, product, and location hierarchies. I also have the retail price for every transaction at the leaf level. I am having trouble writing the mdx to get the aggregation the way I need them.

In the time dimension, at the non-leaf level, i want the last retail price of the children in the time. ie: if I am at the quarter level, i want to show the price of period 3.

In both the Product and Location dimensions, I want the retail price to be averaged at the non-leaf levels such as Product category and Zip code.

I don't really know what the right approach is to make this happen, any advice is greatly appreciated.

Thanks,

Wino...

Hi Wino,

Based on my understanding of your scenario, and assuming you have AS 2005 Enterprise Edition, here's an approach to try:

Create a cube measure like [RetailPrice] on the "Retail Price" fact table field, using LastNonEmpty aggregation function.

Monday, February 20, 2012

Prevent writing to the Transaction Log?

I know this isn't exactly best practice, but is there anyway to perform DELETEs and INSERTs without writing to the transaction log?

Mike

No. The only type of operations that can be minimally logged (in SIMPLE and BULK_LOGGED recovery mode) are Creation and drop of indexes Bulk loading of data Modification of BLOB data SELECT INTO -- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ Blog: http://solidqualitylearning.com/blogs/tibor/ wrote in message news:99b53f54-94e2-44c5-998e-3a66b6bb2966@.discussions.microsoft.com... >I know this isn't exactly best practice, but is there anyway to perform
> DELETEs and INSERTs without writing to the transaction log? >
> Mike >
>