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.
The reason it doesn't work is that, the two functions are preformed, the first is the CNT then PCT and it loses the % on the second. The answer provided is the best way to accomplish this.
Hope this helps.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004
This looks more like a bug to me. Not only does the '%' get lost when you try to reformat on the fly to a D12.1%, the significant digits do not change either. In the following example I try to reformat on the fly to show only one significant digit. Notice the reformat to D12.1% still shows 2 digits and does not have the '%'.
DEFINE FILE CAR DEALER_PCT/D12.2%=DEALER_COST; END TABLE FILE CAR SUM
CNT.DEALER_COST AS 'CNT.DEALER_COST' OVER PCT.DEALER_COST AS 'PCT.DEALER_COST' OVER PCT.CNT.DEALER_COST AS 'PCT.CNT.DEALER_COST' OVER PCT.DEALER_COST/F6.1% AS 'PCT.DEALER_COST,MAKE F6.1%' OVER PCT.DEALER_COST/D12.1% AS 'PCT.DEALER_COST,MAKE D12.1%' OVER PCT.CNT.DEALER_COST/F6.1% AS 'PCT.CNT.DEALER_COST,MAKE F6.1%' OVER PCT.CNT.DEALER_COST/D12.1% AS 'PCT.CNT.DEALER_COST,MAKE D12.1%' OVER
CNT.DEALER_PCT AS 'CNT.DEALER_PCT' OVER PCT.DEALER_PCT AS 'PCT.DEALER_PCT' OVER PCT.DEALER_PCT/F6.1% AS 'PCT.DEALER_PCT,MAKE F6.1%' OVER PCT.DEALER_PCT/D12.1% AS 'PCT.DEALER_PCT,MAKE D12.1%' OVER PCT.CNT.DEALER_PCT AS 'PCT.CNT.DEALER_PCT' OVER PCT.CNT.DEALER_PCT/F6.1% AS 'PCT.CNT.DEALER_PCT,MAKE F6.1%' OVER PCT.CNT.DEALER_PCT/D12.1% AS 'PCT.CNT.DEALER_PCT,MAKE D12.1%'
BY COUNTRY END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003