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.
I’m looking for help on how to get a column name on an across report. I’ve not done very many of these and haven’t been able to figure it out or find any other posts that would solve what I am trying to do. I have a lot of different types of data coming in based on dates. I want to print a row of data for each metric. That row will contain the data for that metric along with many columns per date. For example, this is what I want:
Metrics 01/15/2016 01/31/2016 02/01/2016 02/15/2016 Member Count 130 135 142 140 Total Assets 15000.00 15500.00 15800.00 15900.00 Average Age 45 48 44 50
I’m building out my report and can get everything I want except the heading of the word Metrics above my metric fields. My report is built like this: TABLE FILE HOLD001 SUM HOLD001.HOLD001.MBR_CNT AS 'Participant Count' OVER HOLD001.HOLD001.TOT_AV_AMT AS 'Total Assets' OVER HOLD001.HOLD001.AVG_MBR_AGE AS 'Average Age' OVER ACROSS LOWEST HOLD001.HOLD001.DisplayDate AS '' ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/WFC/Repository/RIS/FSA_Participant_Overview/stylesheets/plain_report.sty, $ ENDSTYLE END
How can I get the word ‘Metrics’ to print on the left side of the across row?This message has been edited. Last edited by: <Emily McAllister>,
The ACROSSTITLE parameter enables you to display both the ACROSS title and the ACROSS values on one line, you can issue the SET ACROSSTITLE = SIDE command. This command places ACROSS titles to the left of the ACROSS values. The titles are right justified in the space above the BY field titles. The heading line that is created by default to display the ACROSS title will not be generated.
As it will be right justified you need to add styling to make it left justified, something like: TYPE=ACROSSTITLE, JUSTIFY=LEFT, $
success, Martin.
WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
Martin, Thanks for the tip. I've never seen the ACROSSTITLE so it's a good thing to know.
I'm not able to get it to work though because I don't have a BY field. Instead of using the BY fields I'm printing out all of the different rows that I want and then using the OVER command.
-SET &ECHO=ALL;
-* File aprilc01.fex
TABLE FILE CAR
SUM
SEATS AS Metrics OVER
SALES AS Sales OVER
RCOST AS Retail OVER
DCOST AS Dealer
ACROSS SEATS NOPRINT
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Thanks Daniel, But with your example you aren't printing your across fields. I need to print my across row but put 'Metrics' to the left of the across data.
This will get you closer, but still not what you would like. OVER complicates report design. Since there is no BY statement, there's no place to put the ACROSS column title. In the example below, I create a dummy BY column so that the ACROSS column title is placed to the left of the ACROSS values, but the layout isn't pretty.
SET PAGE=NOLEAD
SET ACROSSTITLE=SIDE
DEFINE FILE GGSALES
DUMMY1/A1='';
END
TABLE FILE GGSALES
SUM
DOLLARS
OVER
UNITS
OVER
BUDDOLLARS
OVER
BUDUNITS
ACROSS PRODUCT
BY DUMMY1 AS ''
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Thank you Daniel! Francis is right, it does work beautifully.
I had ran your example but didn't see that the across field and the first sum were the same pieces of data. I applied this same technique to my report and am getting exactly what I wanted. Thank you very much!