Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Re: Calculated Column Expression in View in SAP HANA

$
0
0

Hi,

 

Can you try using if  function??

 

if(("ScheduleLineCommitedQuantity"='0' AND "ScheduleLIneCummulativeConfirmedQty"='0' ANA "ScheduleLineDeliveredQuantity"='0'),"OrderQuantity",("ScheduleLineCommitedQuantity"-ScheduleLineDeliveredQuantity"))

 

In calculated column with 'case' function syntax is,

 

case (arg1, cmp1, value1, cmp2, value2, ... , default)

 

so, if arg1 == cmp1 will return value1 , arg1 == cmp2 will return value2 and so on , default will be returned if no match.

 

But in your scenario, there is no need to use case function, with if function only it can be achieved.

 

Regards,

Rashmi


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

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