Turnover Beast Mode: Avg Distinct Count / Days in date range
I am attempting to create a Turnover Rate beast mode that would take the Average Distinct Count of employee IDs, then divide it by the number of days in the user selected date range.
I've tried the following syntax, but I receive an error:
Raw syntax:
AVG(COUNT(DISTINCT CASE WHEN Team Member status
= 'Active' OR Team Member status
= 'Unpaid Leave' THEN Team Member ID
END))
/
COUNT(DISTINCT Date Scaffold
)
Does anyone have experience with Turnover in Domo? Am I missing something obvious in my syntax?
Best Answer
-
You need to use Magic ETL Rank and Window tile to get turnover rate. Here is how you do it:
- Take the cumulative sum of employees hired (can be by department, job title, or cost center, as needed). This will be done using the rank and window tile (settings = sum preceding unbounded to following zero) by counting employee ids by their hire date, partitioning by department, job title, etc.
- Sum the total employees terminated by day.
- Group by the desired time interval. For example, if you want to see monthly turnover rate, group the cumulative sum of employees using AVG, and the terminated number of employees using SUM. Include the partition in the group by, if applicable.
- Turnover Rate = SUM Terminated Employees / AVG Cumulative employees
- Create your card. I suggest line chart or mega table with partition as rows, date as columns, turnover rate heat mapped.
P.S You should include supplemental information alongside these visuals, such as Most recent hires and terminations by department, title, etc. Total headcount by department, title, etc. This will give the viewer a more complete understanding of employee turnover.
0
Answers
-
You need to use Magic ETL Rank and Window tile to get turnover rate. Here is how you do it:
- Take the cumulative sum of employees hired (can be by department, job title, or cost center, as needed). This will be done using the rank and window tile (settings = sum preceding unbounded to following zero) by counting employee ids by their hire date, partitioning by department, job title, etc.
- Sum the total employees terminated by day.
- Group by the desired time interval. For example, if you want to see monthly turnover rate, group the cumulative sum of employees using AVG, and the terminated number of employees using SUM. Include the partition in the group by, if applicable.
- Turnover Rate = SUM Terminated Employees / AVG Cumulative employees
- Create your card. I suggest line chart or mega table with partition as rows, date as columns, turnover rate heat mapped.
P.S You should include supplemental information alongside these visuals, such as Most recent hires and terminations by department, title, etc. Total headcount by department, title, etc. This will give the viewer a more complete understanding of employee turnover.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive