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] across with ROW-TOTAL formatted differently

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] across with ROW-TOTAL formatted differently
 Login/Join
 
Member
posted
Is it possible to have an across with ROW-TOTAL and have the ROW-TOTALs formatted differently? In the example below I would like the ROW-TOTAL ONLY to show a dollar sign ($37,853 instead of 37,853).



TABLE FILE CAR
SUM
DEALER_COST
RETAIL_COST
ACROSS SEATS
BY COUNTRY
ON TABLE ROW-TOTAL
END

Yields:
.........SEATS
.........2.......................4.......................5.......................TOTAL
COUNTRY..DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST
ENGLAND......11,719......13,978......14,940......17,850......11,194......13,491......37,853......45,319
etc.

Would like to get:
.........SEATS
.........2.......................4.......................5.......................TOTAL
COUNTRY..DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST DEALER_COST RETAIL_COST
ENGLAND......11,719......13,978......14,940......17,850......11,194......13,491.....$37,853.....$45,319
etc.

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


WebFOCUS 7.6.10
Windows
Excel, PDF, HTML
 
Posts: 19 | Location: Cincinnati OH | Registered: August 18, 2010Report This Post
Virtuoso
posted Hide Post
Something like this will do what you want. There may also be other (possibly better) solutions.
TABLE FILE CAR
SUM 
DEALER_COST NOPRINT
RETAIL_COST NOPRINT
BY COUNTRY
SUM 
DEALER_COST
RETAIL_COST
BY COUNTRY
ACROSS SEATS AS ''
COMPUTE DC_TOTAL/D12M = C1; AS 'Total DEALER_COST'
COMPUTE RC_TOTAL/D12M = C2; AS 'Total RETAIL_COST'
END
Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Awesome solution.

May be able to make it smaller with a stylesheet, but why.

Good One


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
GamP that does do exactly what I described that I wanted.

But, Waz could you elaborate on how I might attack this problem with a stylesheet? Because my example was a simplification of what I am really trying to do, which involves FML. A method using a stylesheet would work much better with FML.


WebFOCUS 7.6.10
Windows
Excel, PDF, HTML
 
Posts: 19 | Location: Cincinnati OH | Registered: August 18, 2010Report This Post
Expert
posted Hide Post
Actually it looks a bit bigger.

This uses the SEQUENCE stylesheet option to place the columns in a specified position.

The issue with using this with ACROSS, is you would need to know how many across values there will be to determine the correct sequence number (column position).

I've specified numbers that are larger, which work, but its probably not a good idea.

TABLE FILE CAR
SUM 
DEALER_COST/D12M AS 'Total DEALER_COST'
RETAIL_COST/D12M AS 'Total RETAIL_COST'
BY COUNTRY
SUM 
DEALER_COST
RETAIL_COST
BY COUNTRY
ACROSS SEATS AS ''
ON TABLE SET STYLE *
   TYPE=REPORT, COLUMN=N2, SEQUENCE=10,$
   TYPE=REPORT, COLUMN=N3, SEQUENCE=11,$
ENDSTYLE
END


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
Waz your answer was right on. Now here is EXACTLY what I am tring to do. Using this code:

SET BLANKINDENT=ON
SET FORMULTIPLE = ON
JOIN SYS_ACCOUNT IN CENTGL TO ALL SYS_ACCOUNT IN CENTSYSF
TABLE FILE CENTGL
SUM
NAT_AMOUNT/D10.0
NAT_YTDAMT/D10.0
ACROSS PERIOD
FOR GL_ACCOUNT
3100 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3100 ADD AS CAPTION LABEL GROSS OVER
3300 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3300 ADD AS CAPTION LABEL GROSS OVER
BAR
ON TABLE ROW-TOTAL
END

I would like the dollar sign on the Selling Expenses and Salaries-Corporate lines ONLY, especially on the totals.


WebFOCUS 7.6.10
Windows
Excel, PDF, HTML
 
Posts: 19 | Location: Cincinnati OH | Registered: August 18, 2010Report This Post
Virtuoso
posted Hide Post
SET BLANKINDENT=ON
SET FORMULTIPLE = ON
JOIN SYS_ACCOUNT IN CENTGL TO ALL SYS_ACCOUNT IN CENTSYSF
TABLE FILE CENTGL
SUM 
NAT_AMOUNT/D10.0 
NAT_YTDAMT/D10.0
ACROSS PERIOD
COMPUTE XYZZY1/D10M = C1+C5+C9+C13+C17+C21; AS 'Total amount'
COMPUTE XYZZY2/D10M = C3+C7+C11+C15+C19+C23; AS 'Total YTD'
FOR GL_ACCOUNT
3100 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3100 ADD AS CAPTION LABEL GROSS OVER
3300 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3300 ADD AS CAPTION LABEL GROSS OVER
BAR
END
This uses the same principle as before. And since you now compute totals over only the figures shown, the totals are now correct.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
GamP,

That gives me dollar signs on ALL the rows of the totals but I would like the dollar sign on the Selling Expenses and Salaries-Corporate lines ONLY. Or, ideally, on the Selling Expenses and Salaries-Corporate total lines ONLY.


WebFOCUS 7.6.10
Windows
Excel, PDF, HTML
 
Posts: 19 | Location: Cincinnati OH | Registered: August 18, 2010Report This Post
Expert
posted Hide Post
This will be difficult with FML in place


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
Expert
posted Hide Post
Here is a solution.

Its not pretty!

SET BLANKINDENT=ON
SET FORMULTIPLE = ON
JOIN SYS_ACCOUNT IN CENTGL TO ALL SYS_ACCOUNT IN CENTSYSF
TABLE FILE CENTGL
SUM 
NAT_AMOUNT/D10.0 
NAT_YTDAMT/D10.0
ACROSS PERIOD

COMPUTE T_AMT/P10 = C1+C5+C9+C13+C17+C21; NOPRINT
COMPUTE T_YTD/P10 = C3+C7+C11+C15+C19+C23; NOPRINT
COMPUTE GLAC/A7 = FMLFOR('A7'); NOPRINT
COMPUTE D_AMT/A20 = IF GLAC EQ '3100' OR '3300'
                    THEN PTOA(T_AMT,'(P10MC)','A20')
                    ELSE PTOA(T_AMT,'(P10C)','A20') ; AS 'Total amount'
COMPUTE D_YTD/A20 = IF GLAC EQ '3100' OR '3300'
                    THEN PTOA(T_YTD,'(P10MC)','A20')
                    ELSE PTOA(T_YTD,'(P10C)','A20'); AS 'Total YTD'

FOR GL_ACCOUNT
3100 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3100 ADD AS CAPTION LABEL GROSS OVER
3300 GET CHILDREN ALL WHEN EXISTS AS CAPTION OVER
BAR OVER
3300 ADD AS CAPTION LABEL GROSS OVER
BAR
END 


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
  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] across with ROW-TOTAL formatted differently

Copyright © 1996-2020 Information Builders