Forum Discussion
Employee Count Per Month DAX Not Working
Hello,
I am trying to compare the number of absences against total staff count month on month for a 12 month period.
I was using this formula to work out the staff count per month:
I have had a look at my data model but nothing seems out of sorts can anyone tell me why this is happening. The data used in this formula contains the Employee ID number, their IT Area and their Employment Start Date. The instance of absence measure comes from a seperate absence table.
Thanks!
4 Replies
- amitchandak
Super User
Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.refer if these two can help
- AnonymousNot applicable
Thanks for replying so quickly.
Here is some example employee data:
Here is some example Absence Data:
Here is what I would like a table output of the measure to be when compared to Month Year:
Here is an example of a graph output with all information removed. Please imagine month year along the x axis:
Thanks
- v-yadongf-msft
Community Support
Hi Anonymous ,
I tested your DAX formula and it works fine.
This my test table:
Please check the following things:
1) Whether there is missing data in the Employee table.
2) Is the model relationship between the two tables normal?
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-yadongf-msft
Community Support
Hi Anonymous ,
Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.
Best regards,
Yadong Fang