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] define syntax - how to break logic? (i want to double count)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] define syntax - how to break logic? (i want to double count)
 Login/Join
 
Member
posted
define field "Colors"
IF Color EQ 'BLU'
THEN 'Blue' ELSE
IF Color EQ 'GRN'
THEN 'Green' ELSE
IF Color EQ 'YLW'
THEN 'Yellow' ELSE
IF Color IN('BLU','GRN')
THEN 'Blue or Green' ELSE 'N/A'

then I can filter out the N/A

So my summary table would look like this -
  
Colors        Count
Blue            10
Green           20
Yellow          40
Blue or Green   30 


Know what I mean?

This message has been edited. Last edited by: Kerry,


wFDS: 7.7.03, OS: Windows, Output: Mostly Excel
 
Posts: 22 | Registered: November 15, 2012Report This Post
Gold member
posted Hide Post
Can you please explain what are you trying to do or what are you trying to achieve.


WebFOCUS 7.7. Windows Server 2008. All Outputs.

WEBFOCUS 7.6.11. Windows Server 2003. All Outputs.
 
Posts: 60 | Registered: July 10, 2012Report This Post
Expert
posted Hide Post
This should be quite simple.

FML should do this easily.

Check out the documentation.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
defines do not work that way. once it meets a value it will drop out. the way I would do it is something like this
/*
DEFINE FILE
BLUE_CNT/I6-IF Color EQ 'BLU' THEN 1 ELSE 0;
GREEN_CNT/I6-IF Color EQ 'GRN' THEN 1 ELSE 0; YELLOW_CNT/I6-IF Color EQ 'YLW' THEN 1 ELSE BLUE_GRN_CNT/I6-IF IF Color IN('BLU','GRN')
THEN 1 ELSE 0;
END
TABLE FILE
SUM BLUE_CNT
GREEN_CNT
YELLOW_CNT
BLUE_GRN_CNT


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Virtuoso
posted Hide Post
Mcguyver is a possible way or you can use hold files
You try to use the same figures in two selections. One for blue or green and one for blue and green.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
my company's vendor who we get devstudio from didnt include FML, for some reason...


wFDS: 7.7.03, OS: Windows, Output: Mostly Excel
 
Posts: 22 | Registered: November 15, 2012Report This Post
Expert
posted Hide Post
My understanding is that Dev Studio is unrestricted.

Pity it would have worked.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Then try mcguyver
Once you understand the technic you are going to love it.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
FML is always available in WebFOCUS, it is not a separate license.
Use Report Painter, and, paste this into a new fex. From the Creating Financial Reports document here...
You'll need to log in to Tech Support...


  
TABLE FILE FINANCE
SUM 
     FINANCE.TOP.AMOUNT
ACROSS HIGHEST FINANCE.TOP.YEAR
FOR
     FINANCE.TOP.ACCOUNT
'1000' AS 'UTILITY PLANT' LABEL UTP OVER 
'1010' TO '1050' AS 'LESS ACCUMULATED DEPRECIATION' LABEL UTPAD OVER 
BAR OVER 
RECAP UTPNET=UTP-UTPAD;
 AS 'TOTAL PLANT-NET' OVER 
BAR OVER 
'2000' TO '3999' AS 'INVESTMENTS' LABEL INV OVER 
"CURRENT ASSETS" LABEL R7 OVER 
'4000' AS 'CASH' LABEL CASH OVER 
'5000' TO '5999' AS 'ACCOUNTS RECEIVABLE-NET' LABEL ACR OVER 
'6000' AS 'INTEREST RECEIVABLE' LABEL ACI OVER 
'6500' AS 'FUEL INVENTORY' LABEL FUEL OVER 
'6600' AS 'MATERIALS AND SUPPLIES' LABEL MAT OVER 
'6900' AS 'OTHER' LABEL MISC OVER 
BAR OVER 
RECAP TOTCAS=CASH+ACR+ACI+FUEL+MAT+MISC;
 AS 'TOTAL CURRENT ASSETS' OVER 
BAR OVER 
'7000' AS 'DEFERRED DEBITS' LABEL DEFDB OVER 
BAR OVER 
RECAP TOTAL=UTPNET+INV+TOTCAS+DEFDB;
 AS 'TOTAL ASSETS' OVER 
BAR AS '='
HEADING CENTER 
"COMPARATIVE ASSET SHEET </2"
FOOTING
"</2 *** PRELIMINARY ASSET SHEET BASED ON UNAUDITED FIGURES ***"
WHERE YEAR EQ '1983' OR '1982';
ON TABLE NOTOTAL
END


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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] define syntax - how to break logic? (i want to double count)

Copyright © 1996-2020 Information Builders