×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Adding Rows that don't exist

Adding Rows that don't exist

Adding Rows that don't exist

(OP)
Hi,
I am working on a report and need to display additional rows that don't exist.
Eg.
Tenure 00-01 Headcount 15
Tenure 01-02 Headcount 20
Tenure 03-04 Headcount 10
Tenure 04-05 Headcount 5

In this example there is no one with Tenure 02-03, I want to display Tenure 02-03 and Headcount 0, instead of not displaying it at all.
I appreciate any help
Thanks
Floyd

RE: Adding Rows that don't exist

Have you considered McGyver technique?

RE: Adding Rows that don't exist

(OP)
No i have not. will this work with McGuyer?

RE: Adding Rows that don't exist

What's the structure of your table(s)? Are we talking multi-segment (parent-child), where tenure is parent of headcount? If so, then you can SET ALL=ON, to get parent instances without children. OTW, how does the report KNOW about tenure 02-03?

RE: Adding Rows that don't exist

(OP)
The table consist of Fields - Tenure , Headcount , Joblevel etc
There are some job levels that have headcount in each tenure while there are some that are missing headcount in some tenures. My goal is to display all tenures. Once i can display all tenures for each joblevel, then i have some furthur calculations. I will try Set all = on. Hopefully it works
Thanks

RE: Adding Rows that don't exist

In your report, you can EXPLICITLY specify which rows you want, and in which order, by using the ROWS command. Assuming you have a field which is called something like TENRNG, like this, for each field:

CODE

TENRNG/I2 = IF TENURE FROM 0 TO 1 THEN 1 ELSE
            IF TENURE FROM 1 TO 2 THEN 2 ELSE ...

You can code something like this:

CODE

SUM TENURE FOR TENRNG
1 AS 'Tenure 00-01 Headcount' OVER
2 AS 'Tenure 01-02 Headcount OVER ...

This use the FRL facility of the TABLE command.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close