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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
melanid
Frequent Visitor

Employees list

Hello everyone, 

 

I have two different Excel files, one with the employees in 2020, one with the employees in 2021. I need to create a report in which I can filter on the date (on the year more specifically) and get the total number of employees for the filtered year. 

 

I am a beginner in PowerBI and I don't know how to face this, should I create two fact tables and one dim table.. or should I create two columns, one for the Start Date, one for the End Date, and compare the two tables with a kind of Vlookup? 

 

If you have any suggestions to help me.. Thanks in advance. 

 

Best regards,

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@melanid Add an Append step in Power Query editor to one of your queries where you append the other query. For the query that you appended, right-click the query and disable loading. Alternatively, you could use UNION in a DAX table formula to combine the two tables.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler , 

 

This table is linked to another table (table "Interviewed employees"), so if I append queries, I will have duplicates and the relationship will not be one-to-one (with employee ID) but many-to-many. Do you confirm that this is the good approach? 


Thanks! 


Best regards,

@melanid Many-to-Many is not the end of the world. If you are really worried about it, you can create a bridge table of DISTINCT employee ID's for example and use that as a table between your employee fact table and your interviewed employees table. Would need to know more information about your actual data to be sure of the approach. What kind of information is in your Interviewed employees table?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors