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] How to get CNT.DST total on an Across column Total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to get CNT.DST total on an Across column Total
 Login/Join
 
Platinum Member
posted
I would like to get a distinct count of individuals, SYVSTAL_PIDM, in the across total column. Each of these individuals can have taken more than one of the course or none of the courses that are displayed across the top

  
TABLE FILE INTHLD
SUM 
     CNT.DST.INTHLD.SEG01.SYVSTAL_PIDM AS 'Student,Count'
BY  INTHLD.SEG01.Major1
BY  INTHLD.SEG01.SYVSTAL_CLASS
ACROSS LOWEST INTHLD.SEG01.CRSE AS 'Course' ACROSS-TOTAL 


The numbers I get sum across the courses, for example I get
BIO120 BIO130 TOTAL
Biology SR 42 42 84

When it should be
BIO120 BIO130 TOTAL
Biology SR 42 42 42


Thanks Trudy

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


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Virtuoso
posted Hide Post
Does using the multi-verb may work for you ?

-* multi-verb solution
TABLE FILE CAR
SUM CNT.MODEL AS 'Nb_Model'
BY COUNTRY

SUM CNT.DST.MODEL
BY COUNTRY
ACROSS CAR
END

-* to validate that the above data is ok
TABLE FILE CAR
PRINT MODEL
BY COUNTRY
ACROSS CAR
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
That didn't work for me. I did get it by putting the values in a hold file and then rejoining it to itself. But I was hoping for a more elegant solution!

Thanks Trudy


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Virtuoso
posted Hide Post
That was going to be my second option.

Glad to see that you solved your issue.

Please edit your first post to add [SOLVED] at the beginning of the subject.


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
Expert
posted Hide Post
  
TABLE FILE CAR
SUM 
    CNT.MODEL NOPRINT
  BY COUNTRY
SUM 
    CNT.DST.MODEL AS ''
  BY COUNTRY
    ACROSS CAR
      COMPUTE XTOTAL/I5C = C1; AS 'TOTAL'
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 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] How to get CNT.DST total on an Across column Total

Copyright © 1996-2020 Information Builders