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
lcasey
Post Prodigy
Post Prodigy

Incorrect Measure Total

Hello,

 

I am struggling with understanding why measures do not total correctly.

 

In this report ,  I am trying to perform the following calculation while keeping the filter context on the table.

 

IF the Invoice Age is equal to or less than 6,  then calculate the reserve * Current Exchange rate otherwise 0.

 

LTTPEXCHANGE =

SUMX (

    VALUES ( '000_BadDebt'[Document Number] ),IF([AGE] <=6,

MAX('000_BadDebt'[Reserve]) * MAX('00-Bad_Debt_MC'[XCHGRATE]),0))

 

 

Then I simply want to show the reserve needed:  IF the document is <=6 then LTTPEXCHANGE else     [Revalued NET Commision (USD)]

 

 

Reserve Needed = SUMX('000_BadDebt',IF(

    [AGE] <=6,

    [LTTPEXCHANGE],

    [Revalued NET Commision (USD)]

    ))

 

 

However,  the actual row to row calculation works just great, but the actual total does not.

 

How can I get the calculation to work?

 

Thank01.jpg

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @lcasey,

 

What's wrong with the total?

Can you share a sample?

What does "the document is <=6" mean?

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.