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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
KevBI
Helper I
Helper I

Problem with Measure total while using sumX

Hello PowerBI Pro's !

I have a small Measure that takes Values and divides it with an exchange Rate. Somehow the Totals don't add up correctly even when using sumX.

Total PO Value = SUMX('EKPO (2)', [Net Order Value]) / EKBE[_ExchangeRate]

 

I made a second Measure without the exchange Rate and there the total is calculated correctly ->

PO value without exchnage rate = SUMX('EKPO (2)', [Net Order Value])

 

KevBI_0-1660557011569.png

The Exchange Rate Measure looks like this:

_ExchangeRate =
VAR
    _currency = max(EKBE[Currency])
VAR
    _conversionRate =
    CALCULATE(
            MAX( 'exch  rate AOP 2022'[Exchange Rate new Format])
            , 'exch  rate AOP 2022'[Currency] = _currency
    )
RETURN
_conversionRate

What can be changed so the total will be shown correctly even when the value is divided by the exchange rate?

Thank you guys!

2 REPLIES 2
Anonymous
Not applicable

Hi @KevBI ,

 

If I understood you correctly, you could use ISFILTERED() function to calculate the row value and total value separately.

If I misunderstood your meaning, please share some sample data so that we could test the formula.

 

Best Regards,

Jay

KevBI
Helper I
Helper I

I also tried this Measure out :

_ExchangeRate2 =

VAR
_currency = max(EKBE[Currency])
VAR
_conversionRate =
Sumx(Values(EKBE[Purchasing Document]) , CALCULATE(
MAX( 'exch  rate AOP 2022'[Exchange Rate new Format])
, 'exch  rate AOP 2022'[Currency] = _currency
))

RETURN
_conversionRate

nothing seems to work...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.