Jump to content
We've recently updated our Privacy Statement, available here ×

Simple Groovy expressions not working


dolm

Recommended Posts

I'm trying to build simple charts and I cant seem to get these expressions to work. My data has a field DISPATCH_VALIDITY that has a value of either Valid or Invalid. I need a bar chart that has each center name, with two series (total count) for "Valid" and "Invalid".

My first series is ---

Series expression:

$F{AGENT_CENTER}

Category expression:

$F{AGENT_CENTER}

Value expression:

$F{DISPATCH_VALIDITY} == "Valid"

 

 

This fails with the error:

Error filling print... Error evaluating expression : 
    Source text : $F{DISPATCH_VALIDITY} == "Valid"

 

 

What am I doing wrong? Is there a tutorial somewhere to help with learning Groovy expressions?

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I figured out part of my problem, I changed Category to $F{DISPATCH_VALIDITY} == "Valid"

And the value expression to $V{REPORT_COUNT} but this gives me two categories with multiple series of True / False



Post Edited by dolm at 05/30/2011 14:00
Link to comment
Share on other sites

This is still messed up. My bar chart is showing all centers, with 2 bars for each, showing valid and invalid, but it looks like all lines are scaled to the max value. For example, one center that only has a total of 4 rows in my query result is scaled showing 36 and 6 on the bars values. What gives?
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...