Multiple Rows in cell field of Crosstab Report

with the name of Allah, the most beneficial, the most merciful

Asslam o Alikum,

I have a iReport 1.2.3 crosstab report, against each row and column multiple records are expected in cell field. But currently cell field only display last record from multiple records.

Any Solution of it.

Take Care
Allah Hafiz

Nasir Zeeshan.
nasirzeeshan's picture
Joined: Aug 17 2006 - 10:02pm
Last seen: 16 years 9 months ago

11 Answers:

Hi Nasir,

A cell can display values coming only from a single record.
You have to think in a different way to your crosstab.
Can you describe it?

Giulio
giulio's picture
71621
Joined: Jan 2 2007 - 4:15pm
Last seen: 2 weeks 4 days ago
In the name of Allah, Most Gracious, Most Merciful.

Aslam o Alikum,

Dear Giulio,

How are you?

my problem is that suppose i have customers as my rows and months as my columns and in cells i want to show "order no" in the cell. againt each customer in a month. A customer can place multiple orders in a month. so againt each customer and month multiple records are expected in the cell portion.
It is working fine in Oracle 9i Reports Developer. but not in iReport 1.2.3.

Have you any solution for that. or any other approach for it.

Take Care

Allah Hafiz

Nasir Zeeshan.
nasirzeeshan's picture
Joined: Aug 17 2006 - 10:02pm
Last seen: 16 years 9 months ago
ok, what you can display in a cell is one or more results of aggregations fuctions (likes sum, average, count,...), each rapresented by a measure.

In your case, the aggregation function should produce a text with all the "order no" of the that customer in that month.

You have to modify the definition of your measure and set a custom IncrementerFactory to create the otput you need in your cell.

Giulio
giulio's picture
71621
Joined: Jan 2 2007 - 4:15pm
Last seen: 2 weeks 4 days ago
In the name of Allah, Most Gracious, Most Merciful.

Asslam o Aliku,

Dear Giulio,

Thanks for your idea, Let me try it.
nasirzeeshan's picture
Joined: Aug 17 2006 - 10:02pm
Last seen: 16 years 9 months ago
In the name of Allah, Most Gracious, Most Merciful.

Aslam o Alikum,

How are you? Have any one expample of IncrementerFactory Class
nasirzeeshan's picture
Joined: Aug 17 2006 - 10:02pm
Last seen: 16 years 9 months ago

Nasir,

Did you ever find a solution to this problem?  I am trying to overcome the same issue.

Karen

ktalarico's picture
1303
Joined: Mar 19 2007 - 4:15am
Last seen: 2 weeks 8 hours ago

 I am trying to find an answer to this as well. 

I am trying to create a schedule of planned events - on the left axis is the type of event, across the top is the month in which it will occur - within the cell, I'd like to display all relevant values. 

They should be limited to no more then 3-4, so I am trying to devise a workaround to have 5 fixed values - and have them pull the highest row number, second highest row number, third highest etc etc. 

Does anyone else have another option for this?

katepassaro's picture
Joined: Apr 8 2011 - 6:39am
Last seen: 6 years 5 days ago

 Hm.. Part of my plan was to identify the rank by type and month (left and top axi) and then use an evaluator expression in the crosstab itself to say, 

$V{Grid ValueMeasure} AND rank = 1

$V{Grid ValueMeasure} AND rank = 2

etc. 

 

But I'm lost on how to add in this extra measure piece in the expression - any ideas?

katepassaro's picture
Joined: Apr 8 2011 - 6:39am
Last seen: 6 years 5 days ago
I was finally able to make this work -

I added a rank into my query to rank each left column row arbitrarily - and then added a second "row" to the left of the crosstab, so the multiple values show up under the correct row and column.
katepassaro's picture
Joined: Apr 8 2011 - 6:39am
Last seen: 6 years 5 days ago
Would you be able to provide an example? Thanks in advance.
ktalarico's picture
1303
Joined: Mar 19 2007 - 4:15am
Last seen: 2 weeks 8 hours ago

ktalarico
Wrote:
 

Would you be able to provide an example? Thanks in advance.

Oops, never mind; I figured it out.  Thanks for the great tip Kate!!

ktalarico's picture
1303
Joined: Mar 19 2007 - 4:15am
Last seen: 2 weeks 8 hours ago
Feedback
randomness