Problems with pie charts in report with grouped data

Stimulsoft Reports.NET discussion
Post Reply
HGrijmans
Posts: 3
Joined: Mon Apr 07, 2014 7:37 am

Problems with pie charts in report with grouped data

Post by HGrijmans »

Hi,

I have the following table [Employee, ProductionCell, Customer, WorkedMinutes].
In the report I have two nested Groupheaders, the first one on Employee, and the second one on Productioncell.
For each Employee, productionCell combination I want to show a pie chart with customers and WorkedMinutes, so I placed the piechart in the inner Groupfooter ( of ProductionCell).
However the piechart Always shows all customer,WorkedMinutes information independent of Employee, and productionCell.

Example:
Employee ProductionCell Customer WorkedMinutes
John Design Acne 100
John Design Fabric 70
]John Construction Fabric 125
Peter Design Acne 500
Peter Construction Acne 250

In this example I get 4 piecharts (for each {Employee,ProductionCell} but with all Customer,WorkedMinutes data.
I already used a virtual table but this result in the same piechart.
( I have attached the Original report file, however the naming is Dutch).

Does any one know how to solve this problem?

regards
Hans Grijmans
Attachments
UrenVerdeling.mrt
(25.39 KiB) Downloaded 123 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with pie charts in report with grouped data

Post by Alex K. »

Hello,

Can you please send us a test data for your report.

Thank you.
HGrijmans
Posts: 3
Joined: Mon Apr 07, 2014 7:37 am

Re: Problems with pie charts in report with grouped data

Post by HGrijmans »

I have placed some test data in my Original post. (See above).
The first three columns are strings, the last column is of type double.
Translation in case of problems with Dutch:
( Employee = Werknemer, ProductionCell = Productiecel, Customer = Klant, WorkedMinutes = GewerkteMinuten)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems with pie charts in report with grouped data

Post by HighAley »

Hello.

You should use variables to Filter data for Chart.
You could set its value in the Before Print event of each Group Header.
Please, look at the attached report template.
GroupChart.mrt
(30 KiB) Downloaded 178 times
Thank you.
HGrijmans
Posts: 3
Joined: Mon Apr 07, 2014 7:37 am

Re: Problems with pie charts in report with grouped data

Post by HGrijmans »

Hello Aleksey,

Thank you very much for your solution, it did the job.

with regards
Hans Grijmans
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Problems with pie charts in report with grouped data

Post by Andrew »

Hello,

Great! Have a nice day!
Post Reply