Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Showing the field, even when no data

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Showing the field, even when no data
 Login/Join
 
Silver Member
posted
I want to do a report that shows all the WORKCENTERS and how many hours were charged during the timeframe, by Job#. The report works fine, with one exception...

If there are no hours, that Workcenter doesn't show up.

An idea of what the report looks like:

__________WC#1 WC#2 WC#4
JOB#.............8.0 __ 0.0 __ 0.0
JOB#.............0.0 __ 5.0 __ 1.0
JOB#.............1.0 __ 1.0 __ 1.0

Only three fields, and I can get 0.0 if that JOB has no hours, but look above, there is no WC#3 showing because no hours were charged that day.

SUM: Charged Hours
BY: JOB#
ACROSS: WORKCENTER

Two data sources, JOB ROUTER and TIMESHEET

My Join is Left Outer

This message has been edited. Last edited by: Tamra,


Release: WebFOCUS 8
Windows
HTML, PDF, EXCEL
 
Posts: 40 | Registered: October 24, 2013Report This Post
Expert
posted Hide Post
Have you looked into using ACROSS {field} COLUMNS {val} AND {val} AND {val} ....


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
....
TABLE FILE MO_HDR
SUM MIN.J002.TS_LN_MO.TS_DT NOPRINT
MAX.J002.TS_LN_MO.TS_DT NOPRINT
J003.TS_LN_MO.CHG_HRS
BY MO_HDR.MO_HDR.MO_ID
ACROSS Define_2 AS 'Location'
ACROSS Define_1 AS 'WorkCenter'

So you are saying, I would substitute the line above with
ACROSS {field} COLUMNS {val} AND {val} AND {val} ....

like this:
ACROSS (Workcenter) COLUMNS (BEND SHOP) AND (WELD SHOP) AND (PANEL SHOP)


Release: WebFOCUS 8
Windows
HTML, PDF, EXCEL
 
Posts: 40 | Registered: October 24, 2013Report This Post
Silver Member
posted Hide Post
Once again, the Great and Powerful WAZ to the rescue of the feeble minded non-programming wanna be.....

Thanks!!! If I ever get back to Sydney, I owe you a cold Fosters


Release: WebFOCUS 8
Windows
HTML, PDF, EXCEL
 
Posts: 40 | Registered: October 24, 2013Report This Post
Silver Member
posted Hide Post
The only thing I would add....

If you save this using EDIT WITH TEXT and open it again with INFO ASSIST, you lose the text line you created:

ACROSS (Workcenter) COLUMNS (BEND SHOP) AND (WELD SHOP) AND (PANEL SHOP)


So make all the INFO ASSIST corrections then add the text line.


Release: WebFOCUS 8
Windows
HTML, PDF, EXCEL
 
Posts: 40 | Registered: October 24, 2013Report This Post
Expert
posted Hide Post
Hi Pops,

You don't need the brackets, I only used the {} to indicate changeable values.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Hi,

I understand using ACROSS {field} COLUMNS {val} AND {val} AND {val} code when you know which columns you want to see.

However, is there a way to do this when you are running a report for the last 7 days and want to see the dates displayed for days that have not data. For example, on a shipped revenue report, I want to see the weekend dates shown even though there are not sales for that day.

thank you...


WebFOCUS 8
Windows, All Outputs
 
Posts: 2 | Registered: February 25, 2016Report This Post
Master
posted Hide Post
Do you have a date table? You can't show a record that doesn't exist. I've always joined a calendar table to my request when I want to handle things like that. This way you will always have a record where the value is 0 for that day.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Showing the field, even when no data

Copyright © 1996-2020 Information Builders