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     Two ACROSS statements - silly question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Two ACROSS statements - silly question
 Login/Join
 
Expert
posted
SET PAGE=NOPAGE
TABLE FILE CAR
SUM
DEALER
BY BODYTYPE
ACROSS COUNTRY
SUM
SALES
BY BODYTYPE
ACROSS COUNTRY NOPRINT
ACROSS SEATS
END


I'm getting one DEALER column and then 9 SALES columns, I thought I'd get a DEALER column for each COUNTRY.

Mad


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Francis,

The ACROSS statement in the first SUM is ignored. In multi-set requests you have only BYs, the ACROSSs affect only the last set.


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, 2006Report This Post
Expert
posted Hide Post
Red Face Red Face Red Face

Danny, thanks!

Thant's too bad.

Red Face Red Face Red Face


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Francis,

I can't resist sending you this:
  
-* File across2.fex
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
SUM
DEALER
BY BODYTYPE
BY COUNTRY
SUM
SALES
BY BODYTYPE
BY COUNTRY 
BY SEATS
ON TABLE HOLD
END
TABLE FILE CAR
BY SEATS
ON TABLE SAVE
END
-RUN
-SET &SMAX=&LINES;
DEFINE FILE HOLD
-REPEAT #E FOR &I FROM 1 TO &SMAX;
-READ SAVE,&SEAT
-SET &T.&I=&SEAT;
SALE&I / I6 = IF SEATS EQ &SEAT THEN SALES ELSE 0;
-#E
END
TABLE FILE HOLD
SUM DEALER
-REPEAT #T FOR &I FROM 1 TO &SMAX;
SALE&I AS '&T.&I SEATER'
-#T
BY BODYTYPE
ACROSS COUNTRY
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, 2006Report This Post
Member
posted Hide Post
Hi Francis

It looks like your getting ACROSS SEATS, ACROSS EACH COUNTRY ?

This looks like you're getting what your code is describing, but removing the last "ACROSS SEATS" might get you closer to what you want ?

CL

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


CharLee
 
Posts: 2 | Location: Left Coast | Registered: June 15, 2008Report This Post
Expert
posted Hide Post
Danny, clever use of DM!


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,

Do you NOT want a column for each "SEATS" that has data for each COUNTRY ?

Or, do you want an aggregate total for "ALL SEATS" for each COUNTRY ?

The first gives a Cartesian Product of SEATS x COUNTRY = # of columns in the output, if I understand you correctly ?

Is the second (aggregate) way that would give a single column per COUNTRY what you want ?

I'd like to see the solution that you find.
Thanks


CharLee
 
Posts: 2 | Location: Left Coast | Registered: June 15, 2008Report 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     Two ACROSS statements - silly question

Copyright © 1996-2020 Information Builders