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]Dynamical format ACROSS-TOTAL should show

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Dynamical format ACROSS-TOTAL should show
 Login/Join
 
Gold member
posted
Dynamical format ACROSS-TOTAL should show
when seat value is 2 and 5 then the total value
should show $ Symbol and other should show % Symbol
how to achieve this Dynamical format below is example


TABLE FILE CAR
SUM
SALES/D10M
BY SEATS
ACROSS COUNTRY
ACROSS-TOTAL

ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=8,
$
ENDSTYLE
END

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8202
 
Posts: 61 | Location: India | Registered: March 24, 2014Report This Post
Virtuoso
posted Hide Post
This is one option

TABLE FILE CAR
SUM SALES
BY SEATS
BY COUNTRY
ON TABLE HOLD AS EXTDATA
END
-RUN

TABLE FILE EXTDATA
SUM SALES
BY SEATS
BY TOTAL COMPUTE COUNTRY /A10 = 'TOTAL';
ON TABLE HOLD AS TOTDATA
END
-RUN

TABLE FILE EXTDATA
SUM SALES
BY SEATS
BY COUNTRY
ON TABLE HOLD AS MRGDATA
MORE
FILE TOTDATA
END
-RUN

DEFINE FILE MRGDATA
ACR_ID /I2   = IF COUNTRY EQ 'TOTAL' THEN 99 ELSE 1;
SALESD /D6C  = SALES;
SALESX /A10V = IF SEATS EQ 2 OR 5 THEN '$ ' | FPRINT(SALESD, 'D6C', 'A7') ELSE FPRINT(SALESD, 'D6C', 'A7') || ' %';
END
TABLE FILE MRGDATA
SUM SALESX
BY SEATS
ACROSS ACR_ID NOPRINT
ACROSS COUNTRY 

ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, FONT='ARIAL', SIZE=8, $
TYPE=DATA, ACROSSCOLUMN=SALESX, JUSTIFY=RIGHT, $
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY

TABLE FILE CAR
SUM
SALES
COMPUTE AA/A10='TOTAL';
COMPUTE FLG/A2='B';
BY SEATS

ON TABLE HOLD AS HLD_1 FORMAT ALPHA
END
-RUN

TABLE FILE CAR
SUM
SALES
COUNTRY
COMPUTE FLG/A2='A';
BY SEATS
BY COUNTRY NOPRINT

ON TABLE HOLD AS HLD_2 FORMAT ALPHA

END
-RUN


TABLE FILE HLD_2
PRINT
*
ON TABLE HOLD AS HLD_3 FORMAT ALPHA
MORE
FILE HLD_1
END
-RUN


TABLE FILE HLD_3
SUM
COMPUTE SAL/D6=SALES; NOPRINT
COMPUTE SAL_1/A20=IF SEATS IN (2,5) THEN '$'|FTOA(SAL,'(D6)','A10') ELSE FTOA(SAL,'(D6)','A10')|'%';
BY SEATS
ACROSS FLG NOPRINT
ACROSS COUNTRY

END
 
Posts: 109 | Registered: February 02, 2016Report 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]Dynamical format ACROSS-TOTAL should show

Copyright © 1996-2020 Information Builders