Crystal Reports Formula

Posted on 2014-04-22
Last Modified: 2014-05-05
Using the following information, how do I do a formula for this.

Student get enrolled into our classes every Monday.  So our first day of classes started on 04/07/14.  In my table this is a datetime field.  There is a possibility of 78 hours for this quarter.  What I need help with is figure out the 90% attendance for these students.

Does this make sense?  No sure if I am explaining this right.
Question by:TCHGirl
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

ID: 40016150
what database language are you using to get the it SQL server?

The reason, i ask is because it would be much easier and faster to get the output values if you can get it done directly in SQL and use that value in the report

Author Comment

ID: 40016228
I am using SQL.  But the reports that everybody uses in Crystal.
LVL 101

Assisted Solution

mlmcc earned 500 total points
ID: 40016599
I am guessing this is for a class or a training course you are taking.

Do you need the answer in Crystal?

You need to add a group on the student.
Sum the hours attended
Sum the hours available
In the group footer
Calculate the percentage

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 40029726
Yes I do need this in Crystals.  Is there not an easier way to do this?  Crystal has a place for SQL Expressions.  So how would I do the above?
LVL 101

Accepted Solution

mlmcc earned 500 total points
ID: 40030154
What does the report show now?
You should be able to get the SUM of the hours attended and available and do the calculation in a formula

Sum({HoursSttendedFIeld},{StudentIdField}) / Sum({HoursAvailableField},{StudentIdField})


Author Comment

ID: 40042078
Right now the report does not have this in it.  I have been putting information into a difference table.  So what I am trying to do is eliminate that table and save myself some extra steps.

The formula needs to also be based of when the student started the class because not all the students start class the same day.

So if the student started classes on 04/21/2014 then there are 31 days left in the quarter  x 2 hours a day..  In order for the student to reach 90% then he has to attend classes for 56 hours.  If he attends 56 hours of class then the line says "you reached 90%", if it is less than 56 hours then the line says "you did not reach 90%".

So this what I want to have printed on my report.  But in a formula.  Is this possible?
LVL 101

Assisted Solution

mlmcc earned 500 total points
ID: 40042270
What information is in the report?

To get what you want you will need
1.  Dates/times student attended
2.  Date/times scheduled for class
3.  Date student started attendance
4.  Date student ended attendance


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello, In my precious Article  ( saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question