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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ronaldbalza2023
Continued Contributor
Continued Contributor

Filter on multiple column

Hi everyone, how can I apply one filter on multiple columns. Like I wanted to filter out columns having with same zero values. However, if there's non-zero value in it, it will not be applied. As seen on the photo below, circle with red should be filtered out, where highlighted yellow will remain as there's 2.18 value on staff actual hours column. Thanks in advance. 

ronaldbalza2023_0-1629072347222.png

Staff Estimated Hours  = 
CALCULATE (
    SUM ( 'Jobs/Tasks/Staff Hours'[Assigned Staff Allocated Hours Array OPEN] )
) + [Staff Estimated Hours Not in Array Open] + [Staff NO Estimated Hours Open] + 0
Staff Actual Hours = 
CALCULATE (
    SUM ( Timesheets[Billable Hours] ),
    FILTER ( 'Tasks', 'Tasks'[Task Completed (Job Completed Check)] = FALSE ),
    ALLSELECTED ( 'Date'[Date] )
) + 0
Staff Estimated V Actual Hours = 
IF (
    [Staff Estimated Hours Open Old Measure] = 0,
    0,
    [Staff Estimated Hours Open Old Measure] - [Staff Hours Chargable Timesheets ALL OPEN]
)
1 ACCEPTED SOLUTION

You are welcome.  Change the criteria to Not equal to 0 to factor in both positive and negative values.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

In the Filter pane, apply a condition on this measure - "Staff estimated v actual hours" as >0.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, thanks for taking the time on this. Your solution somewhat solve my problem, however, how can I include the rows having negative values? Thanks so much!

ronaldbalza2023_0-1629073530135.png

 

You are welcome.  Change the criteria to Not equal to 0 to factor in both positive and negative values.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Apologies, may I know which one is it here? I used the is not 0 then negatives were gone. Thanks!

ronaldbalza2023_0-1629085261072.png

 

Is not 0 should have worked.  I cannot say why it is not.  I may need to see your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.