Count if it contains string="1 Week"

Hi Guys,

I need help to count the strings value that it how many times occurs in fields. I tried with using variable but no luck formate of my vairable is 

$F{Weeks}=="1 Week"  and calculation is set to count/sum but it always return 0 value to variable.

Help is appreciated !

Thanks In advance  :)

Thanks 

Pawan 

pawankumar.singh's picture
Joined: Sep 19 2018 - 10:39pm
Last seen: 3 years 3 months ago

new java.lang.Integer($F{WEEKS}.equals("1 Week" )? 1 : 0 ) use this and set calculation to sum

pawankumar.singh - 3 years 3 months ago

1 Answer:

Resolved Thanks 

 

pawankumar.singh's picture
Joined: Sep 19 2018 - 10:39pm
Last seen: 3 years 3 months ago
Feedback
randomness