The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello all,
I have an emloyee table and created a measure called employee count.
Solved! Go to Solution.
Thank you for the idea! It gives diferent numbers but they stil lare not correct and it finds employees who were terminated before they were hired. Using a different measure I can calculate it properly:
@apaulso9 Maybe try this:
Employee Count =
VAR __selectedDate = MAX('Date'[Date])
VAR __Table =
FILTER(
ALL('All Employees'),
[DTHired] <= __selectedDate && ( [DTTerminated] = BLANK() || [DTTerminated] >= __selectedDate )
)
VAR __Result = COUNTROWS(DISTINCT(__Table))
RETURN
__Result
Thank you for the idea! It gives diferent numbers but they stil lare not correct and it finds employees who were terminated before they were hired. Using a different measure I can calculate it properly:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |