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] EXL2K FORMULA question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] EXL2K FORMULA question
 Login/Join
 
Virtuoso
posted
I am looking for a way to make WebFOCUS gnerate an Excel formula equivalent to the fex code

COMPUTE INDICATOR/I4=IF X EQ 0 THEN 0 ELSE 1;


Of course, Excel has an IF(,,) function which could be used for that purpose:

=IF( [cel reference] =0, 0, 1)


But WF (as of 7.7.02) apparently lacks the smarts to translate an IF THEN ELSE to =IF( , , ).


If X were known to be non-negative, I could use

COMPUTE INDICATOR/I4= X / MAX(X,0.0000000001);


That will yield 1 when X ge 0.0000000001, and 0 when X eq 0 (while avoiding a zero division error)

But in the present case X is user-modifiable, and unrestricted in sign, in the spreadsheet.

Any suggestions?

This message has been edited. Last edited by: j.gross,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
I think this will do it:

COMPUTE INDICATOR/I4= 
MAX( X / MAX(X,0.0000000001),X / MIN(X,-0.0000000001) );


should translate directly to a similar-looking Excel formula,
and gives
for x =0 : max(0,0) = 0
for x >0 : max( 1, a negative value ) = 1
for x <0 : max[ a negative value, 1 ) = 1
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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     [SOLVED] EXL2K FORMULA question

Copyright © 1996-2020 Information Builders