Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
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))