Results 1 to 8 of 8

Thread: Formula Help...! Crystal XI

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    Philippines
    Posts
    43

    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

  2. #2
    New Member
    Join Date
    May 2008
    Posts
    5

    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)

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    Philippines
    Posts
    43

    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.

  4. #4
    New Member
    Join Date
    May 2008
    Posts
    5

    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

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    Philippines
    Posts
    43

    Re: Formula Help...! Crystal XI

    It works but it has duplicate records show..

  6. #6
    New Member
    Join Date
    May 2008
    Posts
    5

    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?

  7. #7

    Thread Starter
    Member
    Join Date
    Apr 2008
    Location
    Philippines
    Posts
    43

    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.

  8. #8
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    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
  •  



Click Here to Expand Forum to Full Width