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.
I have two columns of data for Emplolyees - linked via Employee ID
Table 1 - Shows the employeees who have booked on for a particular date range (Emp ID/ First Name/ Last Name/Work Date/Hours)
Tabel 2 - Is the listing of ALL company employees (Emp ID/ First Name/ Last Name)
Outcome - I am trying to get an output of the employees from Table 2 that do not feature in the Table 1 lisitng for the chosen sliced date range
Solved! Go to Solution.
Create a measure like
Emp is visible =
IF (
SELECTEDVALUE ( 'Table 2'[Employee ID] )
IN EXCEPT ( VALUES ( 'Table 2'[Employee ID] ), VALUES ( 'Table 1'[Employee ID] ) ),
1,
0
)
and add that as a visual level filter to only show when the value is 1
Thank you very much I now have the desired results
Use the columns from table 2 in the visual and add a filter so that 'Table 1'[Employee ID] is blank.
Thank you for your response, following those steps however there are no blank values displaying in the filter listing for the visual as an option or returning if I choose "is blank" , I know I am expecting 40 records
You could create a measure as COUNTROWS('Table 1') and filter for values >= 1.
I'm not sure what Im doing wrong but I can't get to a list of those who have not booked on, the measure only shows those who have booked again i cant get to the blanks
Just for debugging try creating a new table like
Tmp table =
CALCULATETABLE (
EXCEPT ( VALUES ( 'Table 2'[Employee ID] ), VALUES ( 'Table 1'[Employee ID] ) ),
DATESBETWEEN ( 'Date'[Date], DATE ( 2023, 1, 1 ), DATE ( 2023, 1, 31 ) )
)
replacing the start and end dates with what you have chosen from the slicer.
That seems to display the values I am looking for on the non-bookers, how can I incorporate that into the report?
Create a measure like
Emp is visible =
IF (
SELECTEDVALUE ( 'Table 2'[Employee ID] )
IN EXCEPT ( VALUES ( 'Table 2'[Employee ID] ), VALUES ( 'Table 1'[Employee ID] ) ),
1,
0
)
and add that as a visual level filter to only show when the value is 1
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |