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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
josimarjr
New Member

Calculate the outstanding amount receivable from an invoice total

Hello,

I need to calculate the balance receivable from the total invoice according to the context of the table below:

The problem is that the invoice amount is repeated across the lines.

It is necessary to calculate in DAX taking into account the invoice number (In the example 165995) the invoice amount (121,558.46) and the sum of the amounts received (75,288.80).

Return = 46,269.66

I manage to get this result, but only when I filter the invoice, when I remove the filter from the invoice, I no longer have the result.

 

I need to add the receivable amount in both contexts of the attached images.

Considering the invoice amount - total receipts

Thanks

 

01.png02.png

3 REPLIES 3
tamerj1
Super User
Super User

Hi @josimarjr 

what should be the expected result of the first context?

What exactly have you tried and exactly was the problem?

HI  @tamerj1 

 

Basically I want to calculate in DAX the amount of the invoice (In the example 165995) and value (121,558.46) minus the sum of the amounts received (75,288.80).

Return = 46,269.66

The big problem is that the invoice amount is repeated because of the number of receipt lines.

Thanks

@josimarjr 

Then try to use MAX invoice value instead of SUM

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors