Readymixer
Technical User
I am trying to sort on a formula that looks like this:
IF Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}) < 0
//THEN 1
THEN -(Sum ({@NetProfit}, {@CustQuote})/Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}))
ELSE IF Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}) = 0
//THEN 2
THEN -(Sum ({@TotalCost}, {@CustNumbName}))
ELSE Sum ({@NetProfit}, {@CustNumbName})/Sum ({KR_CustProfAnalysis1.Quantity}, {@CustNumbName})
The formula is referecing a view on my database. The result is a Number data type. Crystal is not giving me the above formula as a selecting in the Sort Order tool in Crystal 8.5. What am I missing?
IF Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}) < 0
//THEN 1
THEN -(Sum ({@NetProfit}, {@CustQuote})/Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}))
ELSE IF Sum ({KR_CustProfAnalysis1.Quantity}, {@CustQuote}) = 0
//THEN 2
THEN -(Sum ({@TotalCost}, {@CustNumbName}))
ELSE Sum ({@NetProfit}, {@CustNumbName})/Sum ({KR_CustProfAnalysis1.Quantity}, {@CustNumbName})
The formula is referecing a view on my database. The result is a Number data type. Crystal is not giving me the above formula as a selecting in the Sort Order tool in Crystal 8.5. What am I missing?