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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Maria9292
Helper II
Helper II

Find all employees working/being fired on each date

Hi!

 

I have a data set Employee_Name , Start_Date, End_Date and I need to create a dashboard where I could choose a day, month, or year and see who was an active employee whiting chosen perion, who was fired. 

 

Would you please hepl me with the logic here?

 

Thank you!

Maria

1 ACCEPTED SOLUTION
Anonymous
Not applicable

okay got it.

 

For this include all details from the table and pull it directly in the table visual. Once you click on any part of the above cretae visualization it will filter the results for you.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Maria 

 

Create a date table = calendar(min(start_date),max(end_date)

 

Dont connect these tables.

 

Drag this to x-axis and create = calculate(distinctcoumt(ID),filter(table,start date<=max(date)&&end_date>max(date)

 

You will get a measure which will show you active emoloyees on each day.

 

Post this you would see active employees on each dte.

@Anonymous 

Thank you! That gives me a number of employees on each date, but what I need is names. 

I need to be able to filter a list of emloyees when choosing a certain date.

 

Anonymous
Not applicable

okay got it.

 

For this include all details from the table and pull it directly in the table visual. Once you click on any part of the above cretae visualization it will filter the results for you.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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