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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Passing variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Passing variables
 Login/Join
 
Member
posted
I have a synonym that has summary data and raw data in the same file. I need to create a report that would compare summary data to the detail data to make sure that both are the same. For instance, sum of Sales $ for each State should be the same as Sales $ reported where State = 'All' . Can define file have computed columns based on some criteria? For instance (this is pseudocode)
ALL_FILTER/I7 = SUM(SALES) WERE STATE EQ 'ALL'
ALL_STATES/I7 = SUM(SALES) WERE STATE NE 'ALL'

I have MSFT SQL background and would have used variables in declare statement, then do the difference. I need to solve this issue in Web Focus though, so your ideas are appreciated.

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


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
 
Posts: 19 | Registered: March 19, 2012Report This Post
Expert
posted Hide Post
DEFINE FILE table_name
ALL_FILTER/I7 = IF STATE EQ 'ALL' THEN SALES ELSE 0;
ALL_STATES/I7 = IF STATE NE 'ALL' THEN SALES ELSE 0;

TABLE FILE table_name
SUM 
ALL_FILTER
ALL_STATES
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 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] Passing variables

Copyright © 1996-2020 Information Builders