dbTalk Databases Forums  

Problem with calc Member with Inflexion point in Formula

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


Discuss Problem with calc Member with Inflexion point in Formula in the microsoft.public.sqlserver.olap forum.



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

Default Problem with calc Member with Inflexion point in Formula - 12-29-2005 , 11:41 AM






Hi:
I have dimensions (Owner, Product, Time) and facts (Transaction,
PriceHistory).

The transaction has a BuyQty and a SellQty, only one of which is
non-Zero in a Transaction (i.e. either a buy or a sell).

Calc Member (AquisitionCost)=
iif
(SellQty=0,
AquisitionCost.PrevMember + TranValue.CurrentMember,
UnitPrice.PrevMember * Balance.CurrentMember
)

This works fine when I have AquisitionCost in Columns, ProductCode and
Date in Rows, for all but the last row, which is the aggregate for
ProductSubCategory
where the value is zero. I would instead like it to be the last
AquisitionCost value for that Product.

How do I set this right?
Thanks a lot


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.