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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Sum Based On Value
 Login/Join
 
Member
posted
Dev Studio 5.2;
I am creating a report, and I have 2 columns: Class and Mileage. I want to add three additional columns (Car, Truck, Ambulance) that will put the value from Mileage based on the value from Class. For example, if 'Class' is less than 2000 then put 'Mileage' value into 'Car', if 'Class' is less than 3000 and greater than 1999, then put 'Mileage' value in 'Truck', else put 'Mileage' value in 'Ambulance'.

I am fairly new to this program, and I am not sure how to proceed.

Thanks!


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
 
Posts: 18 | Registered: May 23, 2004Report This Post
Expert
posted Hide Post
Something like this?

DEFINE FILE MILEAGE
MILEAGE_C/D10 = IF CLASS LT 2000 THEN MILEAGE ELSE 0;
MILEAGE_T/D10 = IF CLASS FROM 2000 TO 2999 THEN MILEAGE ELSE 0;
MILEAGE_A/D10 = IF CLASS GE 3000 THEN MILEAGE ELSE 0;
END

TABLE FILE MILEAGE
PRINT
CLASS MILEAGE
MILEAGE_C MILEAGE_T MILEAGE_A
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


Copyright © 1996-2020 Information Builders