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     [CLOSED] double subfoot for only one subfoot, with two different values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] double subfoot for only one subfoot, with two different values
 Login/Join
 
Platinum Member
posted
How would i subfoot after every department, but then when it got to department 5, it would spit out 2 subfoots, one right after the other each subtotal determined by a different subdepartment value.

Ex

department1
data
data
data
data
department1 subfoot

department2
data
data
data
data
department2 subfoot

department3
data
data
data
data
department3 subfoot

department4
data
data
data
data
department4 subfoot

department5
data
data
data
data
department5 subfoot1
when department EQ 5 AND racksubcode=1
department5 subfoot2
when department EQ 5 AND racksubcode=2 OR 3 OR 4

department6
data
data
data
data
department6 subfoot1

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Silver Member
posted Hide Post
How about a define that handles the grouping, and subfoot on that instead of by dept?

Example
department 1 (any racksubcode) > "A"
department 2 (any racksubcode) > "B"
department 3 (any racksubcode) > "C"
department 4 (any racksubcode) > "D"
department 5 (sub codes as desired) > "E1"
department 5 (sub codes as desired) > "E2"
department 5 (sub codes as desired) > "E3"
... etc?


WebFOCUS & DataMigrator 7.7.03M
Windows 2003, Windows 2008 x64
 
Posts: 35 | Registered: May 11, 2011Report This Post
Platinum Member
posted Hide Post
I thought of that and I am currently using something very similar to that, however, i don;t know how to spit out 2 subfoots on the department 5, with one of the subfoot calculating when racksubcode is 1 and the other when racksubcode is 2 or 3 or 4... one right after the other

EX. I would like it to look like a normal department except at the end there is two subfoots

department 5
data
data
data
data
^^data above contains all racksubcodes for dept 5^^
subfoot1
when department EQ 5 AND racksubcode EQ 1
subfoot2
when department EQ 5 AND racksubcode EQ 2 OR 3 OR 4


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Silver Member
posted Hide Post
Are the totals being calculated in the subfooter, or are they already calculated in the incoming data via hold file etc?

If they're in the incoming data, perhaps you could add a column to the incoming data, so there is TOTAL1 and TOTAL2 for example. Then conditionally show TOTAL2 in the footer when the record is department5?

Or,since the data is sorted, you could compute/define for the totals and split them up into TOTAL1 and TOTAL2 that way, however that could get kind of hairy if there is a lot of stuff to total.


WebFOCUS & DataMigrator 7.7.03M
Windows 2003, Windows 2008 x64
 
Posts: 35 | Registered: May 11, 2011Report This Post
Platinum Member
posted Hide Post
there is a lot being calculated and it would be difficult making a ton of defines...

but you second suggestion i beleive would work however, i don't know how i would pull it off becuase not only am i saying the i want both the subfoots on department EQ 5 but that the first one would be when racksubcode EQ 1 and the second subfoot would be when racksubcode EQ 2 OR 3 OR 4...

thanks for the help!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Platinum Member
posted Hide Post
Charles,

Instead of multipass usage of HOLD files and creation of many defines, check the McGyver Technique out. Reference my article MacGyver Technique for Dynamic Number of Grouped Subtotals/Subfoots.

Simple, really, once you understand it...one pass for the data, no hold files, create as many separate or multiple subfoots as you need based on hidden or displyed values.

Play with the CAR database sample code I provide in the article and see if this will fit your need.

David



In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle
 
Posts: 161 | Location: Dallas, TX | Registered: February 20, 2009Report 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     [CLOSED] double subfoot for only one subfoot, with two different values

Copyright © 1996-2020 Information Builders