Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Find last column with data Post Reply Post New Topic
Author Message
thummel1
Senior Member
Senior Member
Avatar

Joined: 27 Apr 2012
Location: United States
Online Status: Offline
Posts: 140
Quote thummel1 Replybullet Topic: Find last column with data
    Posted: 01 Dec 2015 at 9:45am
Hi,
 
I am using Crystal Reports 2008. My goal is to show the first person an employee reports up to in the management chain. I already have a table that provides this information. See illustration below:
Employee ID Level 1 Level 2 Level 3 Level 4 Level 5
12345 Bob Jones Mickey Mouse Tom Smith Jan Peterson  
423 Bob Jones Beth Adler      
555 Bob Jones Mickey Mouse Brad Barns Sarah Fields John Jacobs
 
I would want my report to look like this:
Employee IDImmediate Reports to Manager
12345Jan Peterson
423Beth Adler
555John Jacobs
 
The first person the employee reports up to is in the last non-blank column. So I need to pull the last non-blank column for each employee. If you have any suggestions how to do this, that would be great. Thanks!


Edited by thummel1 - 01 Dec 2015 at 9:46am
"Press any key to continue. Where's the 'Any' Key?" ~Homer Simpson
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.035 seconds.