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: 
Not applicable

CONDITIONAL EXPRESSION IN SUM function

dear friends,

I am new to qlik view and  was trying to do a sum expression where the summation Is dependent on another column status.deduct

I would like to sum the consumption of a particular material in which "MAT.MOV._TYPE" if 261 or 201 then it Should add up and in case of 202 or 262 or 222 the same should .

i.e: Total consumption_ Qty =  Sum of mov. type 201,221,261  - sum of mov. type 202,22,262.

can any one please Share the expression.

anil gopal

   

CONSUMPTION_QTYCONSUMPTION_UNITNET_VALUEMAT.MOV._TYPEMATERIAL_NO
1SET17497.5261000000002618025007
1SET17497.5262000000002618025007
1EA16830201000000002692109001
1EA16830202000000002692109001
0.1TO4848.97261000000009311110100
0.1TO4848.97261000000009311110100
0.32TO15509.39261000000009311110100
0.47TO22602.27261000000009311110100
0.47TO22790.16261000000009311110100
0.64TO31018.77261000000009311110100
0.8TO38471.95261000000009311110100
1.2TO58187.63261000000009311110100
0.64TO28920.25201000000009311110100
1.2TO56557.27281000000009311110100
1.8TO81899.64261000000009311110100
2.695TO121781.36261000000009311110100
2.695TO121781.36262000000009311110100
5.36TO232373.49201000000009311110100
5.36TO232373.49202000000009311110100
Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Thank You The Logic worked.

View solution in original post

2 Replies
kuczynska
Creator III
Creator III

Not sure if that's exactly what you were asking for - as I don't see Status column in your data file. See attached qvw - calculation you were asking for has been created:

Total consumption_ Qty =  Sum of mov. type 201,221,261  - sum of mov. type 202,222,262.

Not applicable
Author

Thank You The Logic worked.