cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Column report

Former Member
0 Kudos

Hi,

I am newbie in Crystal report. I stuck into a design problem of crystal report. I would like to design a report as per the desired-report.png (attached).

My dataset is like report2.xml and relationship specified in relationship-diagram.png (attached)

The problem is crystal report make the Cartesian product of these two table which result in several rows. I am using .Net windows application to build this report.

Could anyone please suggest how to design this type of report ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have design the report as below.

But the data are not coming as expected. It is coming as shown in previous thread. Data xml is attached with main thread.

former_member188030
Active Contributor
0 Kudos

Hi Manish,

Are you facing this issue from CR designer or .NET app?

Does the report work as expected from CR designer?

What version of Crystal Reports are you using?

-Bhushan

Former Member
0 Kudos

Hi Bhusan,

I am facing this issue from .net app. I guess some thing is wrong with relationship or I need to configure something in crystal report so that it behave as per desired format. I guess crystal report read record by record and it tries to match diamond record with metal report in which there is no direct relation and might result in Cartesian product.

I am using xml datasource so in designer it shows some dummy data. I am using CRforVS_13_0_9.

former_member183750
Active Contributor
0 Kudos

One thing I am not sure of in your reply;

Is this report working anywhere? E.g.; if it does not work in the CR Designer, it will not work in a .net app either.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Former Member
0 Kudos

No it is not working anywhere. When ever I tried to run this report I got the cross product of two table ie ValueWiseSummaryDiamond & ValueWiseSummaryMetal.

Could you please help me in resolving this problem ?

former_member188030
Active Contributor
0 Kudos

Hi Manish,

To make the report work fine, it has to work fine from CR designer first.

As you are facing the issue with report design, I would recommend you to post the query in the Crystal Reports Design forum http://scn.sap.com/community/crystal-reports.

One the report works from CR designer as expected, it would work from the application too.

Thanks,

Bhushan

Former Member
0 Kudos

HI Bhusan,

You could download the report & test it in your enviroment.

https://www.dropbox.com/s/grtr1dseml3ot54/Report.zip

Please let me know your finding.

Former Member
0 Kudos

Hi Bhusan,

My problem got resolved. It is resolved by creating two sub report one for stone section & other for metal section. Now I am getting the desired output.

Thanks for your support.

former_member188030
Active Contributor
0 Kudos

Happy to Help!

Answers (1)

Answers (1)

former_member188030
Active Contributor
0 Kudos

Hi Manish,

To view the report properly from a .NET application, the report has to work fine from CR designer.

I think you are stll in process of designing the report. Could you confirm the same.

Are you facing the issue from CR designer or .NET application?

Does the erport work fine from CR designer?

- Bhushan

Senior Engineer

SAP Active Global Support

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Getting started and moving ahead with Crystal Reports .NET applications.

Former Member
0 Kudos

This is the desired report format

IdStoneDescriptionRateWeightValueCaratId2MetalRate3Weight4Value5
1Diamond0.350.0743750.351Loose Diamond000
2Diamond1.150.23155251.152Silver Utensils4820550976125
3Diamond4.250.85637504.253Gold 18K2250103.21232223
4Diamond0.80.16128000.84Gold 22K2750204.3561825
5Diamond0.20.0433000.25Sovereign281088247280
6Diamond10.2170001
7Diamond9.431.891650259.43
8Diamond0.50.190000.5
9Diamond1.70.341275001.7

This is the Cartesian product what I am getting in report. For example every diamond row is multiplied to metal rows. As shown in example below-

IdStoneDescriptionRateWeightValueCaratId2MetalRate3Weight4Value5
1Diamond0.350.0743750.351Loose Diamond000
2Diamond1.150.23155251.151Loose Diamond000
3Diamond4.250.85637504.251Loose Diamond000
4Diamond0.80.16128000.81Loose Diamond000
5Diamond0.20.0433000.21Loose Diamond000
6Diamond10.21700011Loose Diamond000
7Diamond9.431.891650259.431Loose Diamond000
8Diamond0.50.190000.51Loose Diamond000
9Diamond1.70.341275001.71Loose Diamond000
1Diamond0.350.0743750.352Silver Utensils4820550976125
2Diamond1.150.23155251.152Silver Utensils4820550976125
3Diamond4.250.85637504.252Silver Utensils4820550976125
4Diamond0.80.16128000.82Silver Utensils4820550976125
5Diamond0.20.0433000.22Silver Utensils4820550976125
6Diamond10.21700012Silver Utensils4820550976125
7Diamond9.431.891650259.432Silver Utensils4820550976125
8Diamond0.50.190000.52Silver Utensils4820550976125
9Diamond1.70.341275001.72Silver Utensils4820550976125
1Diamond0.350.0743750.353Gold 18K2250103.21232223
2Diamond1.150.23155251.153Gold 18K2250103.21232223
3Diamond4.250.85637504.253Gold 18K2250103.21232223
4Diamond0.80.16128000.83Gold 18K2250103.21232223
5Diamond0.20.0433000.23Gold 18K2250103.21232223
6Diamond10.21700013Gold 18K2250103.21232223
7Diamond9.431.891650259.433Gold 18K2250103.21232223
8Diamond0.50.190000.53Gold 18K2250103.21232223
9Diamond1.70.341275001.73Gold 18K2250103.21232223
1Diamond0.350.0743750.354Gold 22K2750204.3561825
2Diamond1.150.23155251.154Gold 22K2750204.3561825
3Diamond4.250.85637504.254Gold 22K2750204.3561825
4Diamond0.80.16128000.84Gold 22K2750204.3561825
5Diamond0.20.0433000.24Gold 22K2750204.3561825
6Diamond10.21700014Gold 22K2750204.3561825
7Diamond9.431.891650259.434Gold 22K2750204.3561825
8Diamond0.50.190000.54Gold 22K2750204.3561825
9Diamond1.70.341275001.74Gold 22K2750204.3561825
1Diamond0.350.0743750.355Sovereign281088247280
2Diamond1.150.23155251.155Sovereign281088247280
3Diamond4.250.85637504.255Sovereign281088247280
4Diamond0.80.16128000.85Sovereign281088247280
5Diamond0.20.0433000.25Sovereign281088247280
6Diamond10.21700015Sovereign281088247280
7Diamond9.431.891650259.435Sovereign281088247280
8Diamond0.50.190000.55Sovereign281088247280
9Diamond1.70.341275001.75Sovereign281088247280

I am unable to understand why it is making Cartesian product when I have specified the relationship. Could you please look into relation diagram ?

Please provide your valuable feedback.