Skip to Content

crystal reports show row data in details section in column format

Hi,

I have a report for Employee attendance.

EmpID EmpName Total Leave Leave Name No Of Days

Group Header 1 abc 8

Details Paid Leave 0

Details Unpaid Leave 2

Details Medical Leave 3

Details Casual Leave 3

Group Footer

Now I want to add static columns Paid leave,Unpaid Leave,Medical and Casual Leave in the report.

EmpID EmpName TotalLeave PaidLeave UnpaidLeave MedicalLeave CasualLeave

Group Header 1 abc 8 0 2 3 3

Details

Group Footer

Please reply.Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 18, 2014 at 11:31 AM

    Hi Saurabh,

    You're better off 'pivoting' this in a SQL Query. If you still wish to do this at the Report Level, here's what you need to do:

    1) Create a formula called (@Paid Leave) with this code:

    If {LeaveName} = "Paid Leave" then {No_of_Days}

    2) Do the same for all the other Leave Types

    3) Next, go to Insert > Choose the '@Paid Leave' formula field > Choose 'Sum' as the summary operation > Under 'Place this summary field', choose 'Group Footer 1'

    4) Repeat Step 3 for all the other formulas

    5) Move all the summaries from the Group Footer to the Group Header.

    Hope this helps.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.