0

In BOBJ is there a way to change the formula of the object based on what's being selected in the query?

For example, TradeValue usually equals to dbo.Trade.TradeValue, but if SalesPerson is selected in the query along with TradeValue, I would like TradeValue to be dbo.Trade.TradeValue * Salesperson.Percentage.

Any workarounds suggested will be much appreciated.

4

1 回答 1

2

特定对象无法检测查询中是否存在另一个对象,因此您需要两个对象用于TradeValueTradeValue * SalesPerson.Percentage

我能想到的唯一解决方法是创建一个提示,询问用户是否SalesPerson.Percentage应包含在计算中。就像是:

TradeValue * case when @variable("Multiply by SalesPerson Percentage") = 'Y'
                  then SalesPerson.Percentage
                  else 1 end
于 2013-11-13T17:29:58.733 回答