I have a report with a subdataset. The query is giving me the results that I need, but I want to use some variables to get counts and averages to be used in charts and/or other components.
Every time I try to use a simple counter variable, I get a java.lang.NullPointException error. I think I've tried every combination of Reset and Evaluation Time settings for a single Text Field. Is there something different that I need to do?
To be clear, I'm not trying to pass or return a variable to the main report. I've done that before. I'm just trying to use a subdataset variable in a component that is using the subdataset query. Example: a distinct count of students to be used in a List or Table component.