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]Percentage to decimal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Percentage to decimal
 Login/Join
 
Member
posted
I am trying to create a percentage toggle where my percentage is to be set as a decimal. I am having problems converting my percent as integer. I created an example through car.

SUM PCT.CAR.BODY.SALES/F6.2% WITHIN BODYTYPE
BY CAR.BODY.BODYTYPE
BY CAR.CARREC.MODEL
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH HBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
END

I'm trying to figure out the percentage for each individual slice as it meets a business requirement. Any suggestions on what to do? I tried formatting sale as a float and a decimal and didn't have any luck. Thoughts?

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 03, 2015Report This Post
Master
posted Hide Post
Your confusing me, by posting chart code, looking for a percentage, which I would think is a report.

TABLE FILE CAR
SUM PCT.CAR.BODY.SALES/D6% WITHIN BODYTYPE
BY CAR.BODY.BODYTYPE
BY CAR.CARREC.MODEL
END



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Virtuoso
posted Hide Post
What you're actually doing by redefining the format of the field is introducing a new field.
You'd better put that redefine in a define and use the defined field without any reformatting.
That way you're always sure of what GRAPH is using.
Now it is not clear if it uses the original field or the reformatted one.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
GamP-

Thanks, that fixed my problem. I had created a new define but I was reformatting within the GRAPH as well. Appreciate your help.

NickSmith


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 03, 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]Percentage to decimal

Copyright © 1996-2020 Information Builders