Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 | Project | Date | Hours |
Employee A | Project A | 08-Feb-23 | 4.00 |
Employee A | Project A | 08-Feb-23 | (4.00) |
Employee A | Project B | 08-Feb-23 | 8.00 |
Employee B | Annual Leave | 08-Feb-23 | 8.00 |
Employee B | Annual Leave | 08-Feb-23 | (8.00) |
Employee B | Project A | 08-Feb-23 | 6.00 |
Employee B | Project B | 08-Feb-23 | 2.00 |
Apparently, I noticed that if I leave them as it is, the visuals automatically account for the negative values.
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,
Gao
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
@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])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
76 | |
46 | |
44 | |
34 |
User | Count |
---|---|
180 | |
85 | |
68 | |
47 | |
46 |