Hello!
I have a table with Amounts and 2 types of currency. I want to simply display the items in “EUR” and in case it is “HUF” I want to convert them. BUT! The exchange rate depends on a date which will come later on during the project (or not). I want to use the exchange rate 1 (EXRate1) until there is no other exchange rate and then use the Exchange rate 2 (EXRate2) from a date (EXRateDate) I give during the project at a later stage.
I am here now but it does not work:
switchif(thisRow.Currency="EUR",thisRow.[Amount],
thisRow.Currency="HUF".and(EXRateDate=0),thisRow.[Amount]/EXRate1,
thisRow.Currency="HUF".and(EXRateDate>thisRow.[Date of payment]),thisRow.[Amount]/EXRate1,
thisRow.Currency="HUF".and(EXRateDate<thisRow.[Date of payment]),thisRow.[Amount]/EXRate2)
Somehow I can not give the “AND” formula for the Condition for the SwitchIf.
Any idea how to crack this?
Thanks a lot in advance!