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
snifer
Post Patron
Post Patron

comparing 2 total

i got a table look as in attached file

Capture.PNG

 for the same "ExpenseInvoiceID" i need the compare the Sum of "Linesum" with one of the line from"money from recon test"

 

in this case

125.76+150= 275.76

 

problem is that everytime money from recon sum are taken as double since 2 lines

 

 

this is just an example sometime the lines are 3

4 REPLIES 4
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @snifer,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a measure:

Measure = CALCULATE(SUM(Table1[LineSum]),FILTER('Table1','Table1'[SubID]=MAX('Table1'[SubID])))-CALCULATE(MAX('Table1'[money]),FILTER('Table1','Table1'[money]=MAX('Table1'[money])))

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

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

it looks like to be working

I got the same issue the sum if line sum 15049.79 - sum amount 172472.82 should be equal to diffe nav-xsp calculated with the formula u posted above,

strange things that between the line I can see just few cents different where result sho as 2280.18

 

 

i filter out the diffe that is not 0 put some of them still showing...Capture.PNG

 

 

 

Hi @snifer,

Could you please share a sample file and post your desired result to help me test your problem?

 

Regards,
Daniel He

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

Hi @snifer,

 

Don't know if you want one formula with the comparision or not but try something like this:

 

Valid = SUM(Table[LineSum]) - MAX([money from recon test])

Then just add this with the  Expense ID to a table visual and you should get 0 if it equal.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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