Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I have a list os Employees and Dates and I need to list all employees that are not in a certain period. For example:
We have the [Employee] column and the [Year] column
And we have a filter equal to 2022
So, I need some way to show a list of all employees that has no 2022 value on the data table.
But if I change the Year on the filter pane to 2021 the list needs to comply with the filter.
Can anyone please help me?
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
One of ways to achieve this is to have disconnected Year_table, so once a year is selected from a slicer, the table visualization can show year numbers that is not equal to the year number from the slicer.
Year measure: =
VAR maxyearslicer =
MAX ( 'Year'[Year] )
VAR slicerselect =
SELECTEDVALUE ( 'Year'[Year], maxyearslicer )
RETURN
IF (
HASONEVALUE ( Employee[Employee] ),
CALCULATE ( MAX ( Employee[Year] ), Employee[Year] <> slicerselect )
)
Hi,
Please check the below picture and the attached pbix file.
One of ways to achieve this is to have disconnected Year_table, so once a year is selected from a slicer, the table visualization can show year numbers that is not equal to the year number from the slicer.
Year measure: =
VAR maxyearslicer =
MAX ( 'Year'[Year] )
VAR slicerselect =
SELECTEDVALUE ( 'Year'[Year], maxyearslicer )
RETURN
IF (
HASONEVALUE ( Employee[Employee] ),
CALCULATE ( MAX ( Employee[Year] ), Employee[Year] <> slicerselect )
)
Thanks @Jihwan_Kim this helps me a lot to find a way to work around my problem.
Best regards!
@MarceloPavas_27 , Assume you have count of employee measures
_cnt = count(Table[Employee])
or
_cnt =
var _max = maxx(allselected(Date), Date[Year])
return
calculate(count(Table[Employee]), filter(Table, Table[Year] = _max))
Then create a measure to find who is not there in selected range, prefer Employee dimension
Measure =
countx(values(Employee[Employee]), if(isblank([_Cnt]), [Employee], blank()))
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |