Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

CE_CALC if function

$
0
0

Hi Team,

 

I'm trying to use nested if condition using CE, below is my formula

 

CE_CALC(' if "Field1" = 0, 0, if "Field2" > "Field3", ( ("Field2" - "Field3") * "Field4" * -1 ), 0 ) ', DECIMAL(17,3)) AS "V_TEMP"

 

it is not returning the correct result. When I use the same condition in SQL Script, it is working fine. Is it possible to use nested if using CE function?

 

Thanks

Sathish


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>