Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a table containing a list of "week ending" dates. I have another table of employees, including their hire and termination dates. I'd really like to add a calculated column to the table of dates that counts the number of active employees as of that date, so it would be a count of the rows in the employee table where the employee hire date is prior to the "week ending" date and the termination date is after the "week ending" date.
Does that make sense? Any assistance is most appreciated.
==
Chris
Solved! Go to Solution.
Something like this?
No of Employees =
CALCULATE (
COUNT ( employee[employee] ),
FILTER (
employee,
AND (
employee[hire date] <= 'week ending'[week ending],
employee[termination date] > 'week ending'[week ending]
)
)
)
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Something like this?
No of Employees =
CALCULATE (
COUNT ( employee[employee] ),
FILTER (
employee,
AND (
employee[hire date] <= 'week ending'[week ending],
employee[termination date] > 'week ending'[week ending]
)
)
)
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Thank you so much for answering my noob question. That's exactly what I was after.
==
Chris
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |