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] Best Practice for currencies calculations???

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Best Practice for currencies calculations???
 Login/Join
 
Platinum Member
posted
Hello,

i have a table with sales figures for the last four business years. In this table i have three currencies
EUR, USD and BPD. I also have a table with the average exchange rates of the fiscal years. What is the
best way to calculate the currencies to EURO. Is it an option to calculate them direct on the master file
of the sales figures table with a huge if then else story.

Regards

Christian

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


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Guru
posted Hide Post
Christian

I would refrain from coding this in the Master file. Rather have a separate table which can generate a textfile with the currency and, year and rate, e.g.

EUR2008 9.00
USD2009 6.85
GBP2010 10.50

APP PREPENDPATH test
APP FI xrates DISK test/xrates.txt
DEFINE FILE CAR
currency_year/A7 = DECODE COUNTRY( 'ENGLAND' 'EUR2008' 'FRANCE' 'USD2009' ELSE 'GBP2010' );
END
TABLE FILE CAR
SUM
DEALER_COST
COMPUTE eur_value = DECODE currency_year(xrates);
COMPUTE eur_dealer_cost = DEALER_COST * eur_value;
BY
COUNTRY
END

Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Platinum Member
posted Hide Post
Hi Håkan,

thanks a lot!! Where do i have to place the xrates.txt file??
Regards

christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Platinum Member
posted Hide Post
Hi Håkan,

i got it !!!! Perfect!!!!

Christian


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
 
Posts: 156 | Location: Essen Germany | Registered: December 02, 2010Report This Post
Guru
posted Hide Post
Christian

you can put it anywhere, just issue the APP FI command to the app (in the APP PATH) where your file is located.

Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report 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] Best Practice for currencies calculations???

Copyright © 1996-2020 Information Builders