Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am trying to count employees over 2 years, who are new hires using the below formula, however this is only returning data for one month not for the full time.
=CALCULATE(COUNT([Employee Id]),FILTER('HR Demographics Data','HR Demographics Data'[NewHire]="Y"))
Any idea on what i am doing wrong?
=CALCULATE(COUNT([Employee Id]),FILTER( ALL('HR Demographics Data'),'HR Demographics Data'[NewHire]="Y"))
OR
=CALCULATE(COUNT([Employee Id]),FILTER(ALLSELECTED('HR Demographics Data'),'HR Demographics Data'[NewHire]="Y"))
Thanks
Both of these worked, it is now giving a number for each month, however not the correct number. It is giving the number for Jan for every month.
Yes, All or allselected uses all your data in the table. and hence you see the same values in all months.
Not sure if you are building this kind:
https://learn.microsoft.com/en-us/power-bi/create-reports/sample-employee-hiring-history
I am wanting to see the active employees and then of those how many are new hires for the month? How would i do this?
We dont have your data or .pbix file and cannot say correct DAX.
It is not hard. Filter the year and month and other columns using ALL or ALLSELECTED with SELECTEDVALUE.
~ Check the first link and download the .pbix file and look the New Hires page.
Check "isNewHire" and "New Hires".
OR
Check this link, it also has the same
https://community.fabric.microsoft.com/t5/Desktop/Employee-Turnover-with-Date-Hierarchy/m-p/558408
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |