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     [SHARING] Format TX do not generates proper Total/SubTotal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SHARING] Format TX do not generates proper Total/SubTotal
 Login/Join
 
Virtuoso
posted
Hi Folks,

FYI

Just to share an something that I found with TX format where Total and Sub-Total are not performed properly when a TX format is used.

I can't tell if this is a known issue, a new one or a normal behavior because actually I can't login to TechSupport.

Run below sample twice and compare.
First as is.
Second with the MDL field displaying (remove "-*").
DEFINE FILE CAR
MDL /TX6 = MODEL;
END
TABLE FILE CAR
SUM MODEL
-*    MDL
    RETAIL_COST
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS 'Sub-Total'
ON TABLE COLUMN-TOTAL AS 'Grand-Total'
ON TABLE SET PAGE-NUM NOLEAD
END

With the second run result, you will see that each Sub-Total are 0 EXCEPT for England (at 5,100 instead of 45,319) and Grand-Total is 5,100 when it's supposed to be 173,204.

Reason of this : Total and Sub-Total only consider rows where the MDL field is displayed on no more than ONE row. Which is only "ENGLAND/TRIUMPH/TR7" row.
In other words : if your TX field display its content in multiple rows, your Total and Sub-Total will be wrong.


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
Virtuoso
posted Hide Post
Hi MartinY:
Why are you SUMming a string? Just wondering.
Babak


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
Babak,

The case is not to sum a string but the TX format cannot be used as a BY, so you don't have choice to put it in the PRINT/SUM section if you want it to be displayed. And if you have numeric value that you want to display with total, there is not a lot of choices...

Even with Multi-verb, the same issue occurs.
DEFINE FILE CAR
MDL /TX6 = MODEL;
END
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
BY CAR
ON COUNTRY SUBTOTAL AS 'Sub-Total'

PRINT MODEL
      MDL
BY COUNTRY
BY CAR
ON TABLE COLUMN-TOTAL AS 'Grand-Total'
ON TABLE SET PAGE-NUM NOLEAD
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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SHARING] Format TX do not generates proper Total/SubTotal

Copyright © 1996-2020 Information Builders