Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Rows to Columns without using cross-tab Post Reply Post New Topic
Author Message
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Topic: Rows to Columns without using cross-tab
    Posted: 30 Jul 2014 at 10:46am

Hello,

I have data something like this

ID Line code
100   1    v120
100   2    v130   
100   3    v14
100   4    v123
100   5    v11
100   6    v6

I want the data to be displayed like this

ID Code1 code2 code3 code4 code5 cod6
100 v120 v130 v14   v123 v11   v6

I grouped it by ID and used following formulas to display

@code1: if line = 1 then code
@code2: if line = 2 then code
@code3: if line = 3 then code

I only see the data for code1 and data is null n code2 & code3

I am not sure where it went wrong could someone please assist me.

THanks.
chand
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 30 Jul 2014 at 12:33pm
you could try crosstab

place in into rows
line into columns
code into summarized as maximum
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.