Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
NarreN
Frequent Visitor

summation of currency not working

Hi!

 

I have a table with AgreementLines all in local currency.

Example:

Products.jpg

I have currencyRate table to be able to make a measure to calculate the currency of each row to NOK.

 

31e8591e-f3e0-423b-95ea-771a1af4ad06.jpg

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:

TableView.jpg

 

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?

 

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

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] )
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

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! 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.