Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I've read multiple threads on this and still cannot get it to work. I have a column of employees, start dates, end dates. I want to be able to essentially chart over time the count of employees (line graph for example). The closest I've come is getting a count of hire on a given date (start date only). Any help?
What granularity do you want for your chart ? days, weeks, months ?
I think you need to transform your start/end date table into a table of months say, with one row for each employee that worked that month.
Then you can just count the rows.
Of course, getting that table is the trick. You might be able to use CROSSJOIN() to get a new table that had a cartesian product for a calendar table and your employee table. So you would have an employee start date and end date for every row in the calendar. You can then add a measure that checks to see if the calendar date for that row is between the start date and end date. 1 if it is, 0 if not. Then you can filter the new table for the start and end date you want to use and just count the 1's in each period.
Help when you know. Ask when you don't!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |