Solved

Crystal Reports Formula

Posted on 2014-04-22
7
595 Views
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.
0
Comment
Question by:TCHGirl
  • 3
  • 3
7 Comments
 
LVL 5

Expert Comment

by:dannygonzalez09
ID: 40016150
what database language are you using to get the data..is 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
0
 

Author Comment

by:TCHGirl
ID: 40016228
I am using SQL.  But the reports that everybody uses in Crystal.
0
 
LVL 100

Assisted Solution

by:mlmcc
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

mlmcc
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:TCHGirl
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?
0
 
LVL 100

Accepted Solution

by:
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})

mlmcc
0
 

Author Comment

by:TCHGirl
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?
0
 
LVL 100

Assisted Solution

by:mlmcc
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

mlmcc
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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