Hi guys ,
I have a table with exchange rates based on each date"Used power automate to generate rates from free exchange rate API"


now I want to calculate the total amount based on the currency we select
like qucantity*unit price/exchange rate
I used the code
With(
{
wRate:
LookUp(
'Currency Rate to USD',
'Created Date' = DataCardValue3.SelectedDate
)
},
Value(TextInput3_2.Text) *
Switch(
Dropdown2_1.Selected.Value,
"USD",
wRate.'Created Date',
"AED",
wRate.'Created Date',
"OMR",
wRate.'Created Date'
)
)