Count of Active Employees Month by Month
I have a card to build which should show running graph of how many candidates had an active authorization at a particular office locations during a given month. It should be able to show historical running totals of employees that an office has and are they growing or shrinking.
So, I have dataset which has columns like office location details, employee names, from and to date when they are licensed to work from one office. An employee might have license or authorization to work in other office locations as well. So, how should I split the data by monthly as I have normal date format. Should I do anything particular in Magic ETL or can I directly write a beast mode calculation?
Can anyone please help me in this?
Example Data:
Company Name | Employee | From | To |
---|---|---|---|
ABC | John | 8-Mar-19 | 28-Sep-20 |
XYZ | John | 22-Apr-19 | 28-Sep-20 |
ABC | Michael | 22-Feb-23 | 29-Mar-24 |
XYZ | Michael | 25-Jan-23 | 8-Jul-24 |
Best Answer
-
You can implement the LAST_DAY() function around all of the dates and that will group everything into monthly buckets. Do it before you do the join and it should get you what you want.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Answers
-
I answered a similar question on how to do this here:
Let me know if that works out for you.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Thanks for the response mark. I have tried this approach but ended up lot many rows in the final output dataset. Instead of daily granularity I am trying to do month wise.
0 -
You can implement the LAST_DAY() function around all of the dates and that will group everything into monthly buckets. Do it before you do the join and it should get you what you want.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.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.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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