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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ashmitp869
Helper V
Helper V

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.