Hi Vadim
You nailed it. I wrote the following code and it worked!
*WHEN KEYFIGURE
*IS PRICE2
*REC(EXPRESSION = (([KEYFIGURE].[PRICE2],[UNIT].[USD])>0.5) ? ([KEYFIGURE].[PRICE2],[UNIT].[USD])*([KEYFIGURE].[CUSTOMER_FORECAST],[UNIT].[EA]) : ([KEYFIGURE].[PRICE1],[UNIT].[USD])*([KEYFIGURE].[CUSTOMER_FORECAST],[UNIT].[EA]), KEYFIGURE=CUSTOMER_REVENUE,UNIT=USD)
*ENDWHEN
Now the issue that I have is I will be having different currencies and units for different combinations and I cannot hardcode it that way. I tried using %UNIT_SET% but it did not work. Is there a way to generalize that? The Customer Revenue will have the same currency as Price1 and Price2. If this can be sorted out, I think it will be all set.