Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone,
i have a payroll table that i want to filter out all 0 hour worker who dont have a fixed salary,
this is the main table with all employees
i want to filter out all employees with no work hours who dont have fixed salaries
so empA should be removed but empD should remain
but this is the resut i get
can someone he lp me i need emp D to be visable even if no hours since he has fixed salary
Solved! Go to Solution.
Hi @Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below
Flag =
VAR _selemp =
SELECTEDVALUE ( 'Table'[Name] )
VAR _emps =
CALCULATETABLE (
VALUES ( 'Table'[Name] ),
FILTER (
'Table',
'Table'[Total Work Time] = 0
&& 'Table'[Fixed Salary In Local] = 0
)
)
RETURN
IF ( NOT ( _selemp IN _emps ), 1, 0 )
2. Create a table visual and apply a visual-level filter with the condition(Flag is 1)
Best Regards
Hi @Anonymous ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a measure as below
Flag =
VAR _selemp =
SELECTEDVALUE ( 'Table'[Name] )
VAR _emps =
CALCULATETABLE (
VALUES ( 'Table'[Name] ),
FILTER (
'Table',
'Table'[Total Work Time] = 0
&& 'Table'[Fixed Salary In Local] = 0
)
)
RETURN
IF ( NOT ( _selemp IN _emps ), 1, 0 )
2. Create a table visual and apply a visual-level filter with the condition(Flag is 1)
Best Regards
Thank you very much
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |