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
pnelsonmi
New Member

Sum only the negative numbers in a column

Hello,

Thank you for taking time to review my question. I am certain I am missing something simple, but can't identify it. 

We have data that is collected via forms. The form data is stored in the Forms Data Table. There are multiple forms within this table and each form has multiple fields.

 

Question: How do I sum only the negative numbers within the FieldValue column?

FormNameFieldCaptionFieldValue
Property Valuation DataValue ($)-205973
Property Valuation DataValue ($)-32257
Property Valuation DataValue ($)-36994
Property Valuation DataValue ($)11739
Property Valuation DataValue ($)11880
Property Valuation DataValue ($)14808

 

Thank you for your assistance!

Patrick

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi  @pnelsonmi 

 

You can do something like this:

Measure = CALCULATE(SUM(MyTable[FieldValue]),MyTable[FieldValue]<0)

 

View solution in original post

4 REPLIES 4
mlsx4
Memorable Member
Memorable Member

Hi  @pnelsonmi 

 

You can do something like this:

Measure = CALCULATE(SUM(MyTable[FieldValue]),MyTable[FieldValue]<0)

 

Thank you for your assistance!

tamerj1
Super User
Super User

Hi @pnelsonmi 

Which column identifies the rows? Is this a sample of source data or a table visual?

Hello,

Thank you for your reply.  If I am following you, the FieldValue column contains the row data.  This is sample source data. I was not able to upload an attachment of the Excel file.  Please advise if there is a way to provide a better sample.

 

Patrick

Helpful resources

Announcements
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.