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     Mutliple Counts in a BY

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Mutliple Counts in a BY
 Login/Join
 
Gold member
posted
hi Smiler

here is my little problem.

DEFINE FILE CAR
CNTR/I1=1;
END

TABLE FILE CAR
SUM CNTR
MODEL
BY COUNTRY
BY CAR
BY BODYTYPE
ON COUNTRY SUBFOOT
"<ST.CNTR IN <COUNTRY"
END


on country i want to do a subfoot saying
this is how many different cars and bodytypes there are in this country.


the code i have now, only gives me the count for the bodytype...how do i get the total counts for the car?

hope i didn't confuse anyone Smiler
please help Smiler


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 2006Report This Post
Virtuoso
posted Hide Post
Try this:

DEFINE FILE CAR
CNTR/I3=1;
CNTR2/I3=1;
END

TABLE FILE CAR
SUM CNTR2
BY COUNTRY
SUM CNTR
MODEL
BY COUNTRY
BY CAR
BY BODYTYPE
ON COUNTRY SUBFOOT
"[ST.CNTR2 CARS [ST.CNTR BODIES IN [COUNTRY"
END

I forget how to get the code to stick


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
One thing we forget is that you are not restricted to using SQL only for SQL sources. And as, sometimes, SQL con provide an easier method of achieving things such as this you could resort to using SQL against the CAR file (or any other for that matter) -
-* File car_sql.fex
SQL
  SELECT COUNT(CAR)      AS CAR_COUNT
       , COUNT(MODEL)    AS MODEL_COUNT
       , COUNTRY
    FROM CAR
GROUP BY COUNTRY
;
TABLE
PRINT *
HOLD AS SQLOUT
END
TABLE FILE SQLOUT
SUM MAX.CAR_COUNT
    MAX.MODEL_COUNT
 BY COUNTRY
END


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Thanks!


~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
 
Posts: 74 | Location: Gaithersburg, MD | Registered: August 08, 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     Mutliple Counts in a BY

Copyright © 1996-2020 Information Builders