Jump to content

Creating a chart based on grouped data


tom.beckman

Recommended Posts

Hello,

Fairly new to the iReport tool, and I'm having some problems with generating a basic report.

I have the following data as a result of an MSSQL query:

SampleTimeSystemPoll Value
2/22/14 1:42System10.95
2/22/14 1:47System11.12
2/22/14 1:52System11.03
2/22/14 1:57System11.12
2/22/14 2:02System11.02
2/22/14 2:07System11.19
2/22/14 2:12System10.98
2/22/14 2:17System11.24
2/22/14 2:22System10.95
2/22/14 2:27System11.11
2/22/14 2:32System10.94
2/22/14 2:37System11.13
2/22/14 2:42System11.03
2/22/14 2:47System11.10
2/22/14 2:52System10.88
2/22/14 2:57System11.15
2/22/14 3:02System10.90
2/22/14 3:07System11.18
2/22/14 3:12System11.00
2/22/14 3:17System11.03
2/22/14 3:22System11.13
2/22/14 3:27System11.01
2/22/14 3:32System11.14
2/22/14 3:37System11.03
2/22/14 3:42System11.19
2/22/14 1:43System223.45
2/22/14 1:48System223.54
2/22/14 1:53System222.31
2/22/14 1:58System222.64
2/22/14 2:03System219.56
2/22/14 2:08System228.29
2/22/14 2:13System224.76
2/22/14 2:18System225.26
2/22/14 2:23System226.52
2/22/14 2:28System225.90
2/22/14 2:33System224.50
2/22/14 2:38System227.00
2/22/14 2:43System221.61
2/22/14 2:48System223.63
2/22/14 2:53System226.30
2/22/14 2:58System229.00
2/22/14 3:03System225.34
2/22/14 3:08System225.58
2/22/14 3:13System227.31
2/22/14 3:18System226.01
2/22/14 3:23System226.36
2/22/14 3:28System221.63
2/22/14 3:33System224.80
2/22/14 3:38System227.99
2/22/14 3:43System227.55
2/22/14 3:48System228.36

What I am trying to do is just to show on page 1, a chart of the data for System1...On page 2, a chart of the data for System2

I have created a group band on system, and placed a time-based chart in the group summary.

The chart has as the Series Expression $F{System} -- Time Period Expression $F{SampleTime} and Value Expression $F{PollValue}

When I run the report, it shows system1 correctly, but on system2's chart it shows both series (System1 and System2 on the same chart)...I only want System2 to show

I have tried a few variations of the evaluation time on the chart...but I can't seem to figure out why the system is combining the two values.

i'm sure it's something pretty simple that I am just overlooking.

Any help would be greatly appreciated.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...