cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WeiMingLeong
Helper V
Helper V

add exchange rate into expense app

Hi all,

i would like to ask what is the best way to do this for both sharepoint list and in powerapp for Expense Application.

Our default currency is Singapore Dollars.

I have 1 Currency exchange rate List that have few different currency.
In the list there are column such as the table.

Date of exchange rate (Single line Text)USD Rate (Number)Yen Rate (Number) MYR Rate (number
18/10/20220.024130.009570.30185
19/10/20220.024110.009530.30133


i am trying to add exchange rate into the expense app.
When an employee select the Currency option  and enter the cost of the receipt, i would like to have the powerapp to calculate exchange rate amount base on the currency option selected, the receipt date, and the Currency exchange rate list.

WeiMingLeong_0-1666322411683.png

WeiMingLeong_1-1666322817647.png

WeiMingLeong_3-1666326223352.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @WeiMingLeong ,

This should product the result as the Default of your Exchange Rate Amount box

With(
   {
      wRate:
      LookUp(
         YourExchangeList,
         'Date of Exchange Rate' = YourReceiptDatePicker.SelectedDate
      )
   },
   Value(YourAmountBox.Text) * 
   Switch(
      YourCurrencyDD.Selected.Value,
      "USD",
      wRate.'USD Rate',
      "YEN",
      wRate.'Yen Rate',
      "MYR",
      wRate.'MYR Rate'
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @WeiMingLeong ,

This should product the result as the Default of your Exchange Rate Amount box

With(
   {
      wRate:
      LookUp(
         YourExchangeList,
         'Date of Exchange Rate' = YourReceiptDatePicker.SelectedDate
      )
   },
   Value(YourAmountBox.Text) * 
   Switch(
      YourCurrencyDD.Selected.Value,
      "USD",
      wRate.'USD Rate',
      "YEN",
      wRate.'Yen Rate',
      "MYR",
      wRate.'MYR Rate'
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Thank you @WarrenBelz .
your solution work!
Thank you

WeiMingLeong
Helper V
Helper V

Hi @WarrenBelz ,

can i ask how can i show the exchange rate value from the Currency Exchange rate list of the selected Date and Currency option?

Thank you!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,684)