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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.