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]Negative sign BEFORE a dollar amount??

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[closed]Negative sign BEFORE a dollar amount??
 Login/Join
 
Member
posted
I am trying to get a negative sign to show BEFORE the dollar amount but I am unable to get it to work by using all the suggestions I have seen on here. I am not sure if I need to change it in my WebFocus FEX file or in the view on my database side?

Here is what it says in the database:

,SUM(COALESCE(CAST(TOTAL_UNDER_PAY * 1.00 AS DECIMAL(15,2)),0)+ COALESCE(CAST(BAL * 1.00 AS DECIMAL(15,2)),0)) AS TOTAL_UPAY

and then I am just calling it into the report as is through the FEX. The amount is already read as a negative number but I need it to show as negative for the viewers.

What coding should I use to make the negative sign show up BEFORE the dollar amount?

This message has been edited. Last edited by: Julie H.,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 13 | Registered: May 24, 2011Report This Post
Virtuoso
posted Hide Post
Before the dollar amount (like $ -100.00) or before the dollar sign (like -$ 100.00). I think the second option is quite standard, the first requires some creativity.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Yes are you talking dollar amount or dollar sign?

It already prints before the amount.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
I need the negative sign to print before the dollar amount (there is not a dollar sign)

Example: -11,000

Do I need to change something in the database coding above (in the first post) to bring the number back with the negative sign or add coding to my FEX to make that number have a negative sign before it? And what coding would I use?

Thanks!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 13 | Registered: May 24, 2011Report This Post
Silver Member
posted Hide Post
Hi,

if amount is GE 0 then '+' || amount else '-' || amount

Thanks!


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
Member
posted Hide Post
quote:
,SUM(COALESCE(CAST(TOTAL_UNDER_PAY * 1.00 AS DECIMAL(15,2)),0)+ COALESCE(CAST(BAL * 1.00 AS DECIMAL(15,2)),0)) AS TOTAL_UPAY


Thanks for the suggestions, I was able to make it work on the database side by changing the coding to TOTAL_UNDER_PAY * -1.00


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 13 | Registered: May 24, 2011Report This Post
Virtuoso
posted Hide Post
Negative amounts should print that way...see this example. I'm not sure what format you are
using.

DEFINE FILE CAR
COSTS/D12 = RETAIL_COST * (-1);
END
TABLE FILE CAR
PRINT
COSTS
BY CAR
END
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report 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]Negative sign BEFORE a dollar amount??

Copyright © 1996-2020 Information Builders