Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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! 🙂
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |