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     [SOLVED] DECIMAL DON'T SHOW ZERO'S

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DECIMAL DON'T SHOW ZERO'S
 Login/Join
 
Platinum Member
posted
Hi,

I want to supress my Zero Values.
My Format is D12.2, but when there is a Zero I get 0,00
How can I just get a normal 0??

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


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Guru
posted Hide Post
This works if you have no other missing values in the report:

SET NODATA = 0
TABLE FILE CAR
PRINT
COMPUTE TST/D12.2 MISSING ON = IF CAR EQ 'AUDI' THEN MISSING ELSE CAR.BODY.DEALER_COST / CAR.BODY.RETAIL_COST;
BY CAR.COMP.CAR

END


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Platinum Member
posted Hide Post
This is exactly what I wanted, but it's still a little tricky.. I want to use a dynamic Format:

MYFORMAT/A8=DECODE ASSETTYP ('Spezial-Fonds' 'D12.4' ELSE 'D12.2');

MIFID_TRX_EA_TEST/MYFORMAT MISSING ON = IF MIFID_TRX_EA EQ 0 THEN MISSING ELSE MIFID_TRX_EA;

but I get a error...


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 177 | Registered: October 17, 2017Report This Post
Virtuoso
posted Hide Post
I think the problem is with having the dynamic format and MISSING ON in the same line. If you can use a DEFINE instead of a COMPUTE here's a way you can get what you want.
 
DEFINE FILE CAR
FMT/A8 = DECODE COUNTRY('ENGLAND' 'D12.4' ELSE 'D12.0');
NEW_SALES MISSING ON = IF SALES EQ 0 THEN MISSING ELSE SALES;
END
TABLE FILE CAR
SUM NEW_SALES/FMT
BY COUNTRY 
BY CAR     
BY MODEL
END 


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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     [SOLVED] DECIMAL DON'T SHOW ZERO'S

Copyright © 1996-2020 Information Builders