SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
s34831850
Fluorite | Level 6

i've got the data has different currency 

need to calculate the amout of money that has been received for each order in aud

how could i do that?

 undefined

1 ACCEPTED SOLUTION

Accepted Solutions
9 REPLIES 9
Kurt_Bremser
Super User

You need a second table that contains currency, date and exchange rate. Then you can join on currency and date to retrieve the rate for the calculation.

s34831850
Fluorite | Level 6

you mean this data right?

undefined

Shmuel
Garnet | Level 18

I don't see different currencies in your post - they are all NZD.

 

In case you have realy different currencies, you have to look for currency rates per date -

some external data or web tool.

RahulG
Barite | Level 11

You should have dataset for currency conversion .

This should contain currency conversion rate for all currency to AUD. This dataset should have rate on every day. 

 

Currency Conversion

DATE    CURRENCY    RATE

 

Then you should join your Transaction table to Currency Conversion based on Date and Currency find the value in AUD.

s34831850
Fluorite | Level 6

undefined

 

this one right?

using left join? 

and then using rate*the amount

Kurt_Bremser
Super User

Left join, with your original dataset on the left. If your exchange rate table does not cover all combinations of currency&date, you have to deal with that. Best by expanding the currency table.

s34831850
Fluorite | Level 6
got it!!! thxs
s34831850
Fluorite | Level 6
what if i want to run a two sample t-test to compare money received for the two groups?
RahulG
Barite | Level 11

Can you be more illustrative about two sample t-test?

Which are the two groups on you want to run t-test?

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 2605 views
  • 2 likes
  • 4 in conversation