Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I need help to calculate sales in USD and Peso based on the exchange rate in Table 2.
Thanks
Faizan Rao
Solved! Go to Solution.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hey @FaizanRao ,
as calculated column something like this should do it:
Sales in USD =
VAR vInvoiceDateCurrentRow = 'Table 1'[Invoice Date]
VAR vCurrencyCurrentRow = 'Table 1'[Sales Currency]
VAR vExchangeRate =
CALCULATE(
MAX( 'Table 2'[Exchange Rate] ),
'Table 2'[Currency From] = vCurrencyCurrentRow
&& 'Table 2'[Currency To] = "USD"
&& 'Table 2'[Date From] <= vInvoiceDateCurrentRow
&& 'Table 2'[Date To] >= vInvoiceDateCurrentRow
)
RETURN
'Table 1'[Sales Value] * vExchangeRate
Hi Denis
Thanks for your prompt reply but still need your help to fix the following error.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
88 | |
73 | |
64 | |
60 |