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.
Solved! Go to Solution.
Hi, @GunnerJ ;
You could modify it:
TEST2 =
CALCULATE (
COUNT ( 'Attrition Rate'[ACCT] ),
FILTER (
ALL ( 'Attrition Rate' ),
YEAR('Attrition Rate'[STARTDT])<=YEAR( MAX('Attrition Date'[Date]))&&
'Attrition Rate'[MINDISCDT] = DATEVALUE ( "1/1/1800" )
&& 'Attrition Rate'[STARTDT] <> BLANK ()))
And in last year ('2021') count is =8976
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @GunnerJ ;
You could modify it:
TEST2 =
CALCULATE (
COUNT ( 'Attrition Rate'[ACCT] ),
FILTER (
ALL ( 'Attrition Rate' ),
YEAR('Attrition Rate'[STARTDT])<=YEAR( MAX('Attrition Date'[Date]))&&
'Attrition Rate'[MINDISCDT] = DATEVALUE ( "1/1/1800" )
&& 'Attrition Rate'[STARTDT] <> BLANK ()))
And in last year ('2021') count is =8976
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@GunnerJ , Seem like very similar to this blog - Current employee https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@amitchandak
Here is the file. This is a test file so it's a bit unorganized. The visual in question is the "TEST by YearlyView" on the Filter Context Lost page. The measure is "TEST". I reviewed your post and beleive your active employees is in general what I'm trying to accomplish here. I'm not as familiar with some of the functions you used so I had a bit of difficulty following. I hope this file works and please let me know if you have any questions. Thank you for taking a look!
https://www.dropbox.com/s/8ssv0xw1p86hbin/Test%20Attrition%20File.pbix?dl=0
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 |
---|---|
72 | |
69 | |
55 | |
37 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |