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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Calendar Table

hi, 

 

im new to power bi and this may be an abitious request but i need to make a card visual that shows the active number of employees given at any time using a date slicer. i have a spreadsheet of an employee list with employment start and end dates (active employees have a blank as their end date) 

 

ive looked online and its suggested to use calendar table and dax. im unsure on how to do this especially for this application. any help is much appreciated. 

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

ExcelMonke
Impactful Individual
Impactful Individual

Hello,
Whilst yes, in general, it is recommended to have an additional calendar table, your case seems straight forward enough to do without it. Should your use case get more complex, you can always create a calendar table by creating a new Table (under modeling) with the following dax: 

DateTable = 
CALENDAR([your start date],[your end date])


For the count of active number of employees, consider the following simple solution:

ActiveEmployees = 
COUNTBLANK(EmployeeList[end date])

Here, you are basically counting how many rows in the end date column are blank, which by your logic, would indicate one (1) active employee. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

thanks a lot for that. how would this work with the date slicer, say if i wanted to find number of employees active a month ago but some of them had left last week? 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 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.

Top Solution Authors