Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
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] + 0Staff Actual Hours =
CALCULATE (
SUM ( Timesheets[Billable Hours] ),
FILTER ( 'Tasks', 'Tasks'[Task Completed (Job Completed Check)] = FALSE ),
ALLSELECTED ( 'Date'[Date] )
) + 0Staff 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]
)
Solved! Go to Solution.
You are welcome. Change the criteria to Not equal to 0 to factor in both positive and negative values.
Hi,
In the Filter pane, apply a condition on this measure - "Staff estimated v actual hours" as >0.
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!
You are welcome. Change the criteria to Not equal to 0 to factor in both positive and negative values.
Apologies, may I know which one is it here? I used the is not 0 then negatives were gone. Thanks!
Is not 0 should have worked. I cannot say why it is not. I may need to see your PBI file.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 41 | |
| 32 | |
| 24 |