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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AxelKAp
Helper I
Helper I

DAX formula partial sum

Hello everyone, 

I need your support to calculate a partial sum. Here I have a table with Purchase Order Number, Invoice Number, PO Amount Total and Invoice Amount. The issue here, I can have one order for several invoice numbers. And in the tab (see below) I want to show the sum of the orders and the sum of the invoices, so that we can see how much we have left to be invoiced. So as you can see in the column PO Amount total the amount for one order is summed up several times. But I would like it to be a sum by taking the PO Amount Total only once.  

AxelKAp_0-1676630389358.png


I would like to have a total of 7500€ and not 22500€.

Do you have any idea how I can do this ? 

Thanks in advance for your support.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @AxelKAp 
Please try

PO Amount Measure =
SUMX ( VALUES ( 'Table'[PO Number] ), CALCULATE ( MAX ( 'Table'[PO Amount] ) ) )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @AxelKAp 
Please try

PO Amount Measure =
SUMX ( VALUES ( 'Table'[PO Number] ), CALCULATE ( MAX ( 'Table'[PO Amount] ) ) )

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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