Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
has75042
Creator
Creator

IF statement

sum({$<PT = {'MD'}>}(NP - OP)*OH)

 

In the above expression how can I  add if SK = '5073', '5118' then divided OH by 2 else OH

1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum({$<PT = {'MD'}>}(NP - OP) * If(Match(SK, 5073, 5118), (OH/2), OH))

View solution in original post

1 Reply
sunny_talwar

May be this

Sum({$<PT = {'MD'}>}(NP - OP) * If(Match(SK, 5073, 5118), (OH/2), OH))