Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Sum an Average Filed Post Reply Post New Topic
Author Message
chrisfaw
Newbie
Newbie
Avatar

Joined: 26 Apr 2016
Online Status: Offline
Posts: 13
Quote chrisfaw Replybullet Topic: Sum an Average Filed
    Posted: 05 May 2016 at 7:35am
Hi

I am quite new to CR and would like some advise on the below or if possible a workaround.

I have a sap query which returns a finished product and the raw material components which make up that product. As there are x number of components to one product the finished product line is duplicated on each row of the raw material line.

I need to calculate the finished product selling price less the total of raw material components. I can do this as per the below.

Group By PO No

FinshProd SoldPrice RawMat CostPirce
Prod A    20        Raw A 1
Prod A    20        Raw B 1
Prod A    20        Raw C 1
Prod A    20        Raw D 1
Prod A    20        Raw E 1

Group PO Sum
Average Sold Price 20 Cost Price 5 Profit 15

The issue I have is that I want to sum total for every finished product in the report. e.g the average sold price in the grouping.

Many Thanks !!!

Chris :-)

Edited by chrisfaw - 05 May 2016 at 7:38am
IP IP Logged
chrisfaw
Newbie
Newbie
Avatar

Joined: 26 Apr 2016
Online Status: Offline
Posts: 13
Quote chrisfaw Replybullet Posted: 09 May 2016 at 1:47am
Any news on this? Or is this not possible?

Regards

IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet Posted: 09 May 2016 at 3:13am
Hi,
I reckon you have it grouped by finished product?
You could create a formula saying
average({table1.finished_product},{table1.finished_product}) - sum({table2.raw_product},{table1.finished_product})
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.