Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi!
I have a table with AgreementLines all in local currency.
Example:
I have currencyRate table to be able to make a measure to calculate the currency of each row to NOK.
I made a measure on my AgreementLine Table called "Total NOK":
Total NOK =
VAR
_currency = MAX(AgreementLine[Cur] )
VAR
_conversionRate =
CALCULATE(
MAX( CurrencyRate[Rate] )
,CurrencyRate[TransactionCurrency] = _currency
)
VAR
_TotalInNok =
SUM(AgreementLine[Total]) * _conversionRate
RETURN
_TotalInNok
This works very well and the numbers are correct per row in my AgreementLine table.
The problem is if I want to sum the field "Total NOK" in a table view or Card.
TableView will end up like this:
The correct sum for "Total NOK" would be: 39 432,53.
I understand the logic, but what I want to achieve is to SUM each row of "Total NOK" which is already calculated.
What is the best approach to deal with local currency and get this setup for my reports?
Solved! Go to Solution.
Create a one-to-many relationship from your currency rate table to your agreement line table then create a measure like
Total NOK =
SUMX (
AgreementLine,
AgreementLine[Total] * RELATED ( 'Currency Table'[Rate] )
)
Create a one-to-many relationship from your currency rate table to your agreement line table then create a measure like
Total NOK =
SUMX (
AgreementLine,
AgreementLine[Total] * RELATED ( 'Currency Table'[Rate] )
)
Thank you!
This worked like a charm! 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |