473,809 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculate the total sum of data in CR

lotus18
866 Contributor
Hello World!


I have my sample report here



How to get the total sum of my fields that are not duplicated? The highlighted are examples of my duplicated fields (both lec and lab) but they don't have the same time.

I tried Suppress if duplicated under Format Object of the field but still it gives me a total of 19 for Lec (instead of 14) and 4 for lab (instead of 2)
Dec 3 '08 #1
19 1922
Dököll
2,364 Recognized Expert Top Contributor
Heiya lotus18!

What version of CR are you using? I do not have this installed here, but I do at work and have taken a couse in CR 11. Perhaps I can salvage something for you or at least ask gurus there; unless someone else sees your post and comes to aid before I do.

Sorry for your troubles!

Dököll
Dec 6 '08 #2
lotus18
866 Contributor
I don't know what version of crystal report is this. The CR I am using right now is integrated on the IDE of visual studio 2005. BTW, I also have a CR11 here installed in my pc.

Waiting for your replies. Thanks Dököll : )


Rey Sean
Dec 6 '08 #3
Dököll
2,364 Recognized Expert Top Contributor
Quite welcome, lotus18!

Questions for you; are you hoping to combine LEC and LAB to get fourteen, I'm a little unclear on that one. And if so, what are combining to get only 2 in LAB?

Will be loking at this at work, late Monday...

In a bit!
Dec 7 '08 #4
lotus18
866 Contributor
@Dököll

No. If you are going to compute the total LEC in the report no doubt it is 19 as seen above. But my problem is, since the highlighted details are the same subjects however they don't have the same schedules, it should be treated as 1. I know its getting complicated now : )

Like for example, I have 2 ENGG MECH (see image above), they have the same no. of lec which is 5, so there total is 10. I want to treat this 2 subjects as 5 lec and not 10. So, total Lec now is 14. Same as well as with the lab. Hope you got it : )


P.S. All same subjects here have the same lec or lab




Rey Sean
Dec 7 '08 #5
Dököll
2,364 Recognized Expert Top Contributor
Hello Rey!

Hope this isn't something you need right away, I could not do anything today, working CR is not my normal routine at work, had to jump into something straight away as usual...

It does sound a bit confusing, but I'll ask about Supressing dupes and see what I can gather, okay...

Rest assured I sent the link there for quick access.

Hopefully soon!

Dököll
Dec 9 '08 #6
QVeen72
1,445 Recognized Expert Top Contributor
Hi Lotus,

Create a Running Total Formula, for the Lab Field, and Put the Condition, if both the Fields Change then add to the Total, else, Dont add..
Or Create a new Formula Field, this is For Lec :
Expand|Select|Wrap|Line Numbers
  1. currencyvar MyLec;
  2. If RecordNumber =1 Then MyLec := {MyTable.Lec}
  3. Else
  4. If {MyTable.Lec} <>Previous ({MyTable.Lec}) And {MyTable.Lab} <> Previous ({MyTable.Lab}) Then
  5. MyLec := MyLec +{MyTable.Lec}
  6.  
Now, Place this formula in GrandTotal Section...

Regards
Veena
Dec 9 '08 #7
lotus18
866 Contributor
@QVeen72
Thanks Veena! I'll try this later at home.


Rey Sean
Dec 10 '08 #8
lotus18
866 Contributor
I tried your suggestion but unfortunately it did not work. It says "The Report Application Server Failed". :'(

Luckily, after a series of trial and error, I finally got it and I hope I had really make it. This is what I did. I edit my running total fields (total_lec) and on Evaluate Option, I changed the For each record option to On Change field option and I selected SubjectCode. I also did this to total_lab.



Now, my problem is, how can I make the duplicated subject's lec and lab fields to become empty or make the text to 0? I know this sounds complicated but I want to make this way. See my sample report below.



I want to change them (the orange block) to 0 so that it is more accurate and it looks neat.


I don't think that using Suppress if Duplicated will solve this problem.


Rey Sean
Dec 10 '08 #9
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

Did you try my other suggestion..? Creating Formula Field...?

Regards
Veena
Dec 10 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
9999
by: Building Blocks | last post by:
Hi, All I need is a simle calculate form script which contains this: A script that can handle text input, radio buttons, checkboxes, and dropdowns. Each one of these variables will contain a number. That number will appear in a seperate box at the bottom. So basically whatever you choose has a corresponding number associated with it (except for the text input, which you enter whatever number) and those numbers are added and produced in...
53
5758
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
1
474
by: Manal/report designer | last post by:
Thank you in advance for any suggestions... I'm using crystal reports version 8 & SQL server. I've created a report that is composed of 2 parts: 1st part contains the mainreport which uses database1 (db1) located on server1(S1), 2nd part contains the subreport which uses database2 (db2) located on server2 (S2), and I've used (parameter field & a certain fields) to link the subreport to the mainreport. The subreport is composed of 2...
4
13784
by: dmisen | last post by:
I have data on air pollution coming from sources across the country, and control options for reducing pollution from each source. The example below shows data for: - 2 sources (plant_ID "001" and "008") - total tons of pollution emitted from each source (20 and 25 tons, respectively) - an ID code for the each control device that could be applied to reduce the emissions - the control efficiency for each control device (percent that it...
7
4332
by: Jurek | last post by:
I have 10+ experience in C/C++ - mostly automation and graphics. I have never written any business apps though. Recently I've been asked to write a simple report that would calculate sales commission. The report needs to be generated from within a C/C++ app. I don't want to mess it up so I thought maybe someone from this group could give me some advice or point to me to a place that'll provide some background on the issue. Here is a...
3
2720
by: nimda via AccessMonster.com | last post by:
hii..i'm new here and dummies in access..i create one form that count total salary.i have 3 field.let say a,b and c.c is auto calculate and will show the total of a and b.my problem is when i look at table there is no value in table c.anyone can help me.. -- Message posted via http://www.accessmonster.com
6
5270
by: kodt | last post by:
I have a form with 4 text input fields. The last one is the total of the previous three fields and should automatically calculate this value when a user enters data into any of the first 3. Normally I would put an onkeyup="" event on the input elements and have that call the function. However, this form is automatically generated based upon information in an XML file. I can add some HTML and Javascript to the page via the XML file, but cannot...
1
3524
by: Jassim Rahma | last post by:
here we have aa limited broadband internet accounts, 5GB, 10GB and 15GB. I want to calculate the total threshold to monitor the internet usage using C#?
6
4892
by: Stuart Shay | last post by:
Hello All: I have a array which contains the totals for each month and from this array I want to get a running total for each month decimal month = new decimal; month = 254; (Jan) month = 78; (Feb) month = 34; (Mar) ect ...
0
4644
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars (double) Sales Units (double) Promo (Text) -- is null or "X" AvgWklyDollars (double) AvgWklyUnits (double) I have a vba module which I thought would work, but it doesn't. I think the problem is an embedded SQL Totals Top 8 query, which doesn't...
0
9721
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
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
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
9200
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
6881
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
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
2
3861
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.