CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Cyrstal Report

  1. #1
    Join Date
    May 2007
    Posts
    2

    Cyrstal Report

    Hi,

    Nittu here...i am at enty level of crystal reports...i am into support team.

    i am facing a problem in most of the reports related to grp by.

    viz : i have a table called ward charges...

    wardid wardname charges
    1 ac room 1950
    2 room #1 1400
    3 room #2 1400

    i need to calculate charges for patient admitted in room#1...
    in report since they have groped by wardid...always
    1950 is fetched for calculating the ward charges
    i want 1400 instead

    ward charges = charges * no. of days

    same probm i facing in many other places due to grp by..

    plz help me hw to sort it out.

    from,
    nittu

  2. #2
    Join Date
    Sep 2005
    Location
    Colorado, USA
    Posts
    86

    Re: Cyrstal Report

    If you are grouping by wardid, then create a formula and place that formula in your group header.

    Formula:
    Code:
     ({Charges * no.ofdays}) \\ Place this in wardid group header
    This will give the calculation for each wardid.

    Hope that is what you are after.
    GJ

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

Featured