|
-
May 5th, 2008, 02:32 AM
#1
Thread Starter
Member
Formula Help...! Crystal XI
I want to create a report base on my data below. I have a column VLWP and SLWP. What is the formula used if IDNO 100 has no SLWP only VLWP. When i drag the fireld sumofleave_days it displays the data on both LeaveCode.
Here's my data from Table [Leave]:
IDNO LEAVECODE SUMOFLEAVE_DAYS
100 VLWP 4
101 SLWP 2
-
May 5th, 2008, 08:46 AM
#2
New Member
Re: Formula Help...! Crystal XI
Hi, can we give little bit clearly ?
if IDNO 100 has no SLWP only VLWP
What you want i was unable to understood these thing ?
You what show SLWP if leaves lessthen 100 ?
then create one formula and write down
if sum(SUMOFLEAVE_DAYS,idno) >100 then
{idno} +"VSWP" + sum(SUMOFLEAVE_DAYS,idno)
else
{idno} +"SLWP" + sum(SUMOFLEAVE_DAYS,idno)
-
May 5th, 2008, 06:45 PM
#3
Thread Starter
Member
Re: Formula Help...! Crystal XI
IDNO 100 has no SLWP
The IDNO is a series system generated by my program. The actual series is 100 to 478. Some of them has SLWP-Sick Leave With Pay, others has VLWP-Vacation Leave with Pay. I want to count how many leave they filed. How many SLWP or VLWP.
This is my type of report

Employee Table and Leave Table Linked
Last edited by lantis; May 5th, 2008 at 06:58 PM.
-
May 6th, 2008, 05:33 AM
#4
New Member
Re: Formula Help...! Crystal XI
Yes for that do these steps
1) on report make a group by with IDNO
2) create formula like 'VLWPCounter' and write down
if {LEAVECODE} = "VLWP" then
SUMOFLEAVE_DAYS
else
0
3) create another formula like 'SLWPCounter' and write down
if {LEAVECODE} = "VLWP" then
SUMOFLEAVE_DAYS
else
0
4) Create Summary field on SUMOFLEVE with group total (It will gives the total leaves)
5) and then place them these two formula fields in group detailed section
6) create group wise summary fields and name it like total VLWP and total SLWP
7) then after that supress the setailed section
By doing this you can get the expected result
-
May 6th, 2008, 07:23 PM
#5
Thread Starter
Member
Re: Formula Help...! Crystal XI
It works but it has duplicate records show..
-
May 6th, 2008, 11:50 PM
#6
New Member
Re: Formula Help...! Crystal XI
Then on report options there is an check box "select distinct data for browsing"
Use that thing and as i know if you did the group by By userID ... is should not appear duplicate rows. did you suppress the detailed section?
-
May 7th, 2008, 06:50 PM
#7
Thread Starter
Member
Re: Formula Help...! Crystal XI
im using crystal report xi. i did not see the check box "select distinct data for browsing". i've gone to the section expert under details. there is only supress blank details nothing more.
-
May 9th, 2008, 03:46 AM
#8
Frenzied Member
Re: Formula Help...! Crystal XI
ranga said to see in report options and not section expert
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|