I have an employee table that links to 3 other tables on EMP#. The employee table has all employees where as the other tables only have a smalll portion. I want to add an employee filter to a report page, however if I straight up use the employee table I will end up with a lot of extra values in the filter that lead to no data. I cant use the emp# from any of the linked tables because there is no gaurentee they share the same employee.
All of my relationships are linked 1way from the employee table.
I was trying to build a countrows filter in the employee table to the other tables but I either get a number that is the total pop or 1 no matter what. I tried defining the column below in the EmpTbl. It returns the total pop of Tbl1 in every cell.
InTables = COUNTROWS( FILTER( 'Tbl1','Tbl1'[EMP#]=RELATED( 'EmpTbl'[EMP#]) ) )
As an aside I have a business unit table that bridges those same table, this originally create amiguity issues until I made all relationships 1way.