Forum Discussion
akim_no
Helper III
1 year agoRevenue in Different Currencies
I need to analyze the revenue in local currency and in euros. For each month, we have the amount in local currency for the current year (Local Currency N) and for the previous year (Local Currency N-...
akim_no
Helper III
1 year agoRate
| Rate | currency_code | currency_id | rate_month | rate_year | monthYear |
| 1.10 | USD | USD | January | 2023 | 01/2023 |
| 1.15 | USD | USD | February | 2023 | 02/2023 |
| 1.25 | USD | USD | March | 2023 | 03/2023 |
| 1.00 | EUR | EUR | October | 2023 | 10/2023 |
| 1.00 | EUR | EUR | November | 2023 | 11/2023 |
| 1.00 | EUR | EUR | December | 2023 | 12/2023 |
| 130.50 | JPY | JPY | September | 2023 | 09/2023 |
| 131.00 | JPY | JPY | October | 2023 | 10/2023 |
| 0.78 | GBP | GBP | September | 2024 | 09/2024 |
| 0.80 | GBP | GBP | October | 2024 | 10/2024 |
| 1.05 | CHF | CHF | August | 2023 | 08/2023 |
| 1.06 | CHF | CHF | September | 2023 | 09/2023 |
| 0.68 | AUD | AUD | July | 2024 | 07/2024 |
| 0.69 | AUD | AUD | August | 2024 | 08/2024 |
| 0.76 | CAD | CAD | June | 2023 | 06/2023 |
| 0.77 | CAD | CAD | July | 2023 | 07/2023 |
| 6.89 | CNY | CNY | May | 2023 | 05/2023 |
| 7.00 | CNY | CNY | June | 2023 | 06/2023 |
| 74.25 | INR | INR | April | 2024 | 04/2024 |
| 74.30 | INR | INR | May | 2024 | 05/2024 |
| 1.36 | SGD | SGD | March | 2023 | 03/2023 |
| 1.37 | SGD | SGD | April | 2023 | 04/2023 |
My Semantic model :
What I'm looking for :
Revenue Euro N-1 =
VAR PYYear = SELECTEDVALUE(Revenue[Revenue year])-1
VAR PYRevenue = CALCULATE([Revenue N], (Revenue[Revenue year]) = PYYear)
VAR MonthYear = SELECTEDVALUE('Rate'[Rate])
VAR Revenue_Euro = SUMX(
'Revenue',
DIVIDE(
PYRevenue,
COALESCE(
LOOKUPVALUE(
'Rate'[Rate],
'Rate'[currency_code], 'Revenue'[currency_id],
'Rate'[monthYear], MonthYear
),
1
)
)
)
RETURN
Revenue_Euro
- Ashish_Mathur1 year ago
Super User
Still not very clear. If possible, could you put this data in an MS Excel file and show the Excel formulas that you would have written to solve this problem. I will convert those Excel formulas to measures/calculated columns.
- akim_no1 year ago
Helper III
I have uploaded a Power BI file with sample data at this link: https://github.com/akimno/power-bi.
Converting revenue to euros:
- The revenue is recorded in different currencies.
- The user selects a month and a year using the filter ('Rate'[monthYear]).
- Once the month and year are selected, I retrieve the exchange rate(for that period.'Rate'[Rate])
- I divide the revenue amount in the local currency by the exchange rate to obtain the revenue in euros ('Revenue'[Revenue Euro N]).
Comparison with the previous year:
- I want to calculate the revenue in euros for the previous year in the same way ('Revenue'[Revenue Euro N-1]).
- Then, I want to display the comparison between the two (for example, as a difference).
The problem: I’m unable to correctly display the value of the previous year’s revenue.
- Ashish_Mathur1 year ago
Super User
Hi,
Please also share the download link of 3 source Excel files.