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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper III
Helper III

Handling Negative Entries in Data

Hello community members,

I have an Excel timesheet with data on the daily work hours of employees for different projects. I am creating a Power BI dashboard to display this information. However, some of the data contains negative values for specific days and projects, which are a result of later corrections made to the timesheet system. For example, if an employee worked 8 hours in total for a day, they may have initially reported 8 hours worked on Project X, but later corrected it to 8 hours worked on Project Y (or multiple projects), causing the original Project X hours to be recorded as negative. I need to find a way to handle/clean these negative entries so that the Power BI dashboard accurately reflects the employee's work hours.


Below is the simplified data. 


Employee AProject A08-Feb-234.00
Employee AProject A08-Feb-23(4.00)
Employee AProject B08-Feb-238.00
Employee BAnnual Leave08-Feb-238.00
Employee BAnnual Leave08-Feb-23(8.00)
Employee BProject A08-Feb-236.00
Employee BProject B08-Feb-232.00
Helper III
Helper III

Apparently, I noticed that if I leave them as it is, the visuals automatically account for the negative values.



Community Support
Community Support

Hi @TinyElephant ,


Not sure, do you want to calculate the sum of all values with positive numbers?

Total Hours = CALCULATE(SUM('Table'[Hours]),'Table'[Hours]>=0)


If I misunderstand your needs, please tell me what your expected output is and how it is calculated.

Best Regards,

Community Support Team


If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Super User
Super User

@TinyElephant , In power BI use a measure = Sum(Table[Hours]) , with all other column


Also, you can use visual level filter measure <> 0


or anew measure


measure 1=

if([Measure] =0, blank(), [Measure])

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors