hello, thanks for your answers but i have found the correct expression, but i´m not @ work, so i´ll post the code on monday. But i have the problem, that i couldn´t set a field from an xml file to integer. I have this problem in version 3.1.4 and in 3.5. If i set the field to integer in version 2.0.5 the report works. In the two older versions i´ve tested, i get an NullPointerException. I dont know why. I have to set the field to string an it works, but the string isn´t usefull. Code:Here is the code for count the number 0 in the field USAGE($V{USAGE}.intValue()==0?"":null) Post Edited by Peter König at 03/30/09 05:17