Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18035

Can you report employee turnover both annually and monthly from the same data set?

$
0
0

Hi there,

 

I've pulled together a dataset that has the yearmonth, count at beginning of month, count at end of month, and count terminated for every employee for every month they were employed. So there is a record for each employee for each month they worked here. Though I stuctured the data with reporting monthly in mind, I also want end users to be able to report annually as well.

 

I created the column Average Employee Count, and the measure Turnover Rate

 

Average Employee Count = (Employee Count Begin of Month + Employee Count End of Month)/2

Turnover Rate = Sum(Terminated Employee Count)/Sum Average Employee Count)

 

This works great for all my monthly visualizations, but doesn't work annually for obvious reasons. I know I could create a dataset that just has one row per employee per year and be able to report annually, but I'd really like to be able to do it off the same data set if at all possible.

 

Since I'm new to PowerBI, I assume there's some fancy footwork that can be done with DAX and/or M (both of which I'm new to) that would make my goal possible.

 

Any help/guidance would be appreciated.

 

Thanks,


Viewing all articles
Browse latest Browse all 18035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>