Skip to Content
author's profile photo Former Member
Former Member

Convert multiple columns to multiple columns per row in Crystal Report

Hi All,

I need help. I want to create a report that look like this

Date (Day)

1 2 3

NAME CHECK NO MS NS MS NS MS NS

Mr. A 1ST Check X - X - X -

2nd Check 0 - X - X -

3rd Check X - X - X -

Mr. B 1ST Check - X - X - X

2nd Check - X - X - X

3rd Check - X - X - X




I'm have now created my report but I'm having trouble my report result would be like this.😢 😢


1 2 3

NAME CHECK NO MS NS MS NS MS NS

Mr. A 1ST Check X - - - - -

2nd Check 0 - - - - - Date 1

3rd Check X - - - - -

1ST Check - - X - - -

2nd Check - - X - - - Date 2

3rd Check - - X - - -

1ST Check - - - - X -

2nd Check - - - - X - Date 3

3rd Check - - - - X -



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 12, 2016 at 04:41 AM

    Hi Lhance,

    Try this please:

    1) Insert a Crosstab and place it on the Report Header

    2) Use the Name field as the first Row field of the crosstab

    3) Use the Check No. field as the second row of the crosstab

    4) Use the Date field as the first Column and set it to Print 'for each day' from the options button

    5) Use the field that displays MS/NS as the second column in the crosstab

    6) Whatever field is used to displays the 'x' or '-', use that as the 'Summarized field' with the summary operation set to 'Max'.

    You'll not start seeing 'X' or '-' just yet as the field you've used in the summarized field may display a text/number.

    You'd further need to add a 'Display string' function on the summary field to display 'x' or '-' depending on whether it has any value or not.

    You can then format the crosstab to not draw gridlines etc from the customize crosstab option.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Abhilash Kumar

      Hi Abhilash,

      Thanks thanks great idea. 😊

      I have one more question under the cross tab I have to put the person who verified .

      1 2 3

      NAME CHECK NO MS NS MS NS MS NS

      Mr. A 1ST Check X - X - X -

      2nd Check 0 - X - X -

      3rd Check X - X - X -

      Mr. B 1ST Check X - X - X -

      2nd Check 0 - X - X -

      3rd Check X - X - X -


      Verified BY 4490 7 4490 7 4490 7



      -Verified by are ID numbers

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.