Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi,
I'm trying to get the count of employees who are serving notice period as of today from the database. Primarily, if the last working date of an employee is beyond today, it should count as the employee serving notice.
For eg. from the below table, count of employees serving notice period should be 3 (10003,10004,10005) as the last working date is beyond today.
Employee ID | Last working date |
10001 | 12-Dec-22 |
10002 | 1-Jan-23 |
10003 | 31-Jan-23 |
10004 | 1-Feb-23 |
10005 | 21-Feb-23 |
10006 | 1-Nov-22 |
Solved! Go to Solution.
oh my bad
For visual purpose.
Simply add a new measure
Today's date = TODAY()
now add thisbto yoir visual,
Create another measure
Terminated = if(max(table[last working day]) < [Today's Date], "yes","no")
Now create a count measure
Count measure =
Var summary = summarize(table,[employee id],"terminated column",[Termintaed]
Return
Calculate(distinctcount([terminated column]),terminated = ""yes")
Thanks. There is a syntax error i'm getting while i use the count DAX wherein i'm unable to get the "terminated". Just doesnt seem to identify
Calculate(distinctcount([terminated column]),terminated = "yes")
oh my bad
thanks, this works!
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
11 | |
10 | |
8 | |
7 | |
7 |