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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Expression

Please help me in the expression :

Screenshot

Capture.PNG

Short Dated :

I want [Short Dated] as variable , $(vInvOnHold) i.e SUM(qty_available) +SUM(qty_blocked_qc)

when the reason_code=130

or else 0 .

Sample model attached.

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Something like this?

=IF(reason_code = 130, SUM({<reason_code = {'130'}>}qty_available) +SUM({<reason_code = {'130'}>}qty_blocked_qc),0)

View solution in original post

3 Replies
Anonymous
Not applicable

Hi,

Please try this: ​if(reason_code = '130', sum($(vInvOnHold)),0)

MK_QSL
MVP
MVP

Something like this?

=IF(reason_code = 130, SUM({<reason_code = {'130'}>}qty_available) +SUM({<reason_code = {'130'}>}qty_blocked_qc),0)

PradeepReddy
Specialist II
Specialist II

take variable, vShortDate and assign the expression

=sum({$<reason_code={'130'}>}qty_available)+sum({$<reason_code={'130'}>}qty_blocked_qc)