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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.