473,623 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports - Average of two fields

Hi guys

I am using access database with Crystal Reports in VS2003
I am working on "Hospital Database"
The fields are -
Name - Date - ConsultingCharg e - TotalFees
i.e. Total Fees include fees for medicine issued by hospital

In the report I want to display the Average of ConsultingCharg e and
TotalFees for every record.
i.e. Name - Date - ConsultingCharg e - TotalFees - Aversge (TotalFees/
ConsultingCharg e)
How can we display the average of two fields in database for every
record.

Further in the monthly analysis report I want to display
Month - TotalFees - ConsultingCharg e - Average ( ConsultingCharg e/
TotalFees )
How to generate report for month from the database with all the dates.
How to display the average of sum of ConsultingCharg e and TotalFees.

Thanks

Amit

Oct 13 '06 #1
1 2576
You will need to create a formula to do this.
In Crystal Reports, create a new formula called something like AverageFees,
inside the editor create TotalFees/ConsultingCharg es and save it.
Add the formula (AverageFees) to the report where you want it displayed.

CM
"amit" <am***********@ gmail.comwrote in message
news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Hi guys

I am using access database with Crystal Reports in VS2003
I am working on "Hospital Database"
The fields are -
Name - Date - ConsultingCharg e - TotalFees
i.e. Total Fees include fees for medicine issued by hospital

In the report I want to display the Average of ConsultingCharg e and
TotalFees for every record.
i.e. Name - Date - ConsultingCharg e - TotalFees - Aversge (TotalFees/
ConsultingCharg e)
How can we display the average of two fields in database for every
record.

Further in the monthly analysis report I want to display
Month - TotalFees - ConsultingCharg e - Average ( ConsultingCharg e/
TotalFees )
How to generate report for month from the database with all the dates.
How to display the average of sum of ConsultingCharg e and TotalFees.

Thanks

Amit


Oct 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
19158
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal Report at runtime? Example: private void button1_Click(object sender,
4
14262
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I am planning to pass a dataset to the report at runtime. From what I have read, it sounds like unbound fields might be the answer. However, I am having trouble figuring out how to bind these unbound fields to my dataset at runtime.
5
3013
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields for reporting purposes and am wondering if anyone knows if this is easily accomplished using the .NET version of Crystal Reports? For example, the description column may be reporting on a dataentry error as follows: TXNCODE: 1010001
1
5822
by: Ron Holmes | last post by:
I posted this question on the Crystal Reports Support site and I am still waiting for an answer. Using Crystal Reports 9.0 Developer Full edition: My Crystal report .RPT file has a Picture box which is an OLE Object located in the Page Header section of my .RPT file. This is the call which works perfectly in VB6 to format the crystal reports Page Header section of my report file EquipLst.rpt.
3
520
by: oscar | last post by:
is there a way of integrating mysql databases into the .net crystal reports? in the report wizard i have options for sql databases, but nothing for mysql. is there a plugin i'm missing for it? i've tried creating a dataset and filling it with the data from a mysql query, but it still does not show up in the wizard. i have also tried to create fields and import data to them, but there seems to be no way of accessing the crystal report...
1
1339
by: KK | last post by:
Hi I run different kinds of queries and display the resulting data on a ASP.NET datagrid. I want to give a facility to let the user graph selected fields (if logicaly possible) using crystal reports. For example, if the query is;
1
7726
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some suggestions for me: I'm trying to either print or export some Crystal Reports in asp.net web application. The reports were made with CR 9.0, get their data from an SQL Server 2000 database.
1
1239
by: amit | last post by:
Hi guys I am using access database with Crystal Reports in VS2003 I am working on "Hospital Database" The fields are - Name - Date - ConsultingCharge - TotalFees i.e. Total Fees include fees for medicine issued by hospital In the report I want to display the Average of ConsultingCharge and
0
1516
by: Brad King | last post by:
Hello all, I am going to describe my specific problem. Also, I can program in C++ & Java although I am a little rusty. I took both classes in order to get my MIS degree but have not touched them since. Kid gloves with me would be awesome. The Background: I am pulling data out of student management system (OS/400 /DB2) into Crystal Reports. I have no command line access and will not be able to get it. I can use Crystal to query the...
0
8217
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8661
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2590
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.