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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ashmitp869
Post Partisan
Post Partisan

Help need to get the TOTAL calculation correct - when subtracting two fields

Hi All,

Can anyone help me with the Total Value for the Field This Claim Total.

 

ashmitp869_1-1726192637633.png

It should be 2118 . But its doing the sum (TotalClaim) - Sum(BilledToDate).

How can I only get the sum (This Claim Total) Column in Total ?

 

Trying this but unable to find the epression .

This Claim Total =
VAR ThisClaim =
IF([BilledToDate] > 0, [TotalClaim] - [BilledToDate],BLANK())
RETURN
IF(HASONEVALUE(PayItem[Description]),
    ThisClaim
IF([BilledToDate] > 0, [TotalClaim] - [BilledToDate])
)
   
Thanks
1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @ashmitp869 ,

 

this happens when a measure is evaluated with a filter from the row, but this filter is not present on the total line.

To really help you it's important to understand

  • the measure that creates the 2118
  • more or less the semantic model

You can try this

This claim total =
sumx('<the table that contains the column linenumber>',
[the measure that creates the 2118]
)

If this does not help to tackle your challenge, provide a pbix that contains sample data but still reflects your semantic model tables, relationships, calculated columns, and measures). Upload the pbix to OneDrive, Google Drive or Dropbox and share the link. If you are using a spreadsheet to create the sample data instead of the manual input method share the spreadsheet as well. Do not forget to describe the expected outcome based on the sample data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey @ashmitp869 ,

 

no, I can't.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

Hey @ashmitp869 ,

 

this happens when a measure is evaluated with a filter from the row, but this filter is not present on the total line.

To really help you it's important to understand

  • the measure that creates the 2118
  • more or less the semantic model

You can try this

This claim total =
sumx('<the table that contains the column linenumber>',
[the measure that creates the 2118]
)

If this does not help to tackle your challenge, provide a pbix that contains sample data but still reflects your semantic model tables, relationships, calculated columns, and measures). Upload the pbix to OneDrive, Google Drive or Dropbox and share the link. If you are using a spreadsheet to create the sample data instead of the manual input method share the spreadsheet as well. Do not forget to describe the expected outcome based on the sample data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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