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     mathmatically changing amper value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
mathmatically changing amper value
 Login/Join
 
Platinum Member
posted
I am wanting to do a drill down report for the last 5 years for a given date. Is there a way using the dialouge manager (or other method) for chaning an amper value mathmatically?

For example, our Aid year is 0607 (2006-2007). So last year's aid year would be 0506, subtracting 101. I've tried this in the dialouge manager, however it doesn't seem to do math very well.

Brian


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Platinum Member
posted Hide Post
I'm confused, Brian. That should work. Can you post your code?


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Platinum Member
posted Hide Post
Hi.

This is what I was trying to use:

-DEFAULT &AID_YEAR = 0607
-SET &AID_YEAR = &AID_YEAR - 101

Brian


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 2006Report This Post
Platinum Member
posted Hide Post
If that's an extract, create a program that has just that code and add this line

-TYPE &AID_YEAR

Should display 506.

If your problem is the missing leading zero, you can fix that with a little extra code.


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Expert
posted Hide Post
-SET &C_AIDYEAR = 0607;
-SET &L_AIDYEAR1 = &C_AIDYEAR + 10000 - 101;
-SET &L_AIDYEAR = EDIT(&L_AIDYEAR1,'$9999');
-TYPE CURRENT YEAR: &C_AIDYEAR / LAST YEAR: &L_AIDYEAR

Since your Dialog Manager starts with a zero, it drops when you use it in math. I add an amount that is one zero more than the result you're expecting and then edit out that position. (Is this English?! I hope I was clear enough in the code).


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
Platinum Member
posted Hide Post
Thanks guys.

Francis, that works great. I appreciate it.

Brian


-Brian

Webfocus v7.6.1 on Windows XP
 
Posts: 108 | Registered: June 19, 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     mathmatically changing amper value

Copyright © 1996-2020 Information Builders