Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tomperro
Helper V
Helper V

Filter reports by reference table

Hello,  I have two tables of data, employee and test info. The employee table is a list of employees with the tests they have taken. Test info table is a list of tests that I want to filter the employee table with. Employee table has employee Id and a test Id. Test table had test Id and test name.

 The employee table may have more test id's that I want to show in all my reports so I want to only show the test ids in employee that exist in my test info table.

is this done on the join or is there a way I can use the test info table as a filter on my pages?

 

example

test table 

Id.   Test name

1    Test 1

2    Test 2

7    Test 7

 

 

employee

employee id.   Test id    Expected result

9999                1            Show

9999                2            Show

9999                4            Do not show

9999                5            Do not show

9999                6            Do not show

9999                7            Show

2 REPLIES 2
amitchandak
Super User
Super User

@tomperro , if they are joined (1-M)

 

if(isblank(Countx(employee, related(Test[Test name]) )  ), "Do Not Show", "Show")

 

 

if they are not joined

 

if(isblank(countx(filter(employee, employee[employee id] in values(Test[id]) ) , employee[employee id])), "Do Not Show", "Show") 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@tomperro , if they are joined (1-M)

 

if(isblank(Countx(employee, related(Test[Test name]) )  ), "Do Not Show", "Show")

 

 

if they are not joined

 

if(isblank(countx(filter(employee, employee[employee id] in values(Test[id]) ) , employee[employee id])), "Do Not Show", "Show") 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors