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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
dkel1394
New Member

Filtering and Displaying Row Data for Unrelated tables

I am trying display a subset of employees employed on the 1st of every month over the last several years based on Hire and Separation Date. I can perform a count, but I also need to display a filter subset of the employees if I select a particular month. 

 

Table 1 (Date Table)                    Table 2 (Employee Table)

01/01/2006                                  John Smith             Hired Date: 01/05/2004        Separation Date: 09/21/2018

01/02/2006                                  John Doe                Hired Date: 05/08/2008        Separation Date: null

01/03/2006                                  Jane Wright            Hired Date: 09/14/2008        Separation Date: 11/15/2020

....                                                  .......

....                                                  .......

07/01/2021                                   ......

 

I wanted to create a matrix like this that shows active employee counts over the years and then be able to click on a cell to display the associated employees.

 

 2002200320042005
Jan12142021
Feb10131821
March8141723

 

I want to be able to click on the matrix cell and for January 2002 and see a list of the 12 employees on working for the company on January 1st. The list of employees would change and filter depending on the cell context that was clicked. These two tables would not be related because you are having to write DAX to figure out which employees were still employed given the date and time table. 

 

Any suggestions would be appreciated. I can get a correct count by using variables and a calculate formula but I cannot filter or display a list of employees based on the count and matrix context. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dkel1394 , Refer to my file below after signature. Drill from trend year table to drill through and check

 

Refer to blog for more information

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@dkel1394 , Refer to my file below after signature. Drill from trend year table to drill through and check

 

Refer to blog for more information

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

Thanks Amit. 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.