gregory.west Posted January 10, 2016 Share Posted January 10, 2016 I have a query that is returning data, I need to do a sum of a field QTY based on a value of partnumber. This is the expression I am using for the Variable:IF($F{partnumber}="90000013",$F{qty},0.00)Jasper is telling me that this is not valid. I have tried it with quotes and apostophies around the 90000013 and get the same thing. For the life of me I can not find the syntax error. Can anyone help? Link to comment Share on other sites More sharing options...
gregory.west Posted January 10, 2016 Author Share Posted January 10, 2016 Just for clarification, the function is SUM and the value class is: java.lang.Double Link to comment Share on other sites More sharing options...
Solution zh3ntil Posted January 10, 2016 Solution Share Posted January 10, 2016 IF($F{partnumber}=="90000013",$F{qty},0.00)orIF($F{partnumber}.equals("90000013"),$F{qty},0.00) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now