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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors