Grouping dates of service to match a pay period
I have two data sets one with employee pay information that is bi-weekly. And one that has information about the employee's work services they provided
The one with employee work data has dates that show when the service was performed (Date of service) and how many hours it took to do the service (Billable hours).
What I am trying to do is group up the dates of service so that they align with a pay period and compare the hours the employee was paid for vs the hours that were billed out to see productivity.
Thanks!
Best Answers
-
You can accomplish this in Magic ETL. You can use the Domo Dimensions calendar dataset and join that to your data which will then allow you to group your data by day, week, month, quarter, etc…
Then you can match up your periods for the billable hours vs hours paid.
If you are using custom periods that don't align with standard calendar weeks/months/quarters, you'll need to bring this data into Domo and use this for the groupings.
Let me know if you get stuck!
If I solved your problem, please select "yes" above
0 -
To do this in Domo, you'll need to join the two datasets and then perform some calculations to compare the billable hours against the hours paid during each bi-weekly pay period.
Employee Pay Information Dataset: Employee ID, Pay Period Start Date, Pay Period End Date, and Paid Hours.Employee Work Services Dataset: Employee ID, Date of Service, and Billable Hours.
Create a pay period table.Employee ID
Pay Period Start Date
Pay Period End Date
1
2024-06-01
2024-06-14
1
2024-06-15
2024-06-28
Join the pay information dataset with the work services.
Work Services Dataset
Pay Information Dataset
Employee ID
Employee ID
Date of Service
Date between Pay Period Start Date and Pay Period End Date
Join the Result with the Pay Period Table
Result from Previous Join
Pay Period Table
Employee ID
Employee ID
Date of Service
Date between Pay Period Start Date and Pay Period End Date
Aggregate Billable Hours - Group by Employee ID, Pay Period Start Date, and Pay Period End Date. Sum the Billable Hours.
Productivity Difference: Billable Hours - Paid Hours
In SQL, something like this:** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers
-
You can accomplish this in Magic ETL. You can use the Domo Dimensions calendar dataset and join that to your data which will then allow you to group your data by day, week, month, quarter, etc…
Then you can match up your periods for the billable hours vs hours paid.
If you are using custom periods that don't align with standard calendar weeks/months/quarters, you'll need to bring this data into Domo and use this for the groupings.
Let me know if you get stuck!
If I solved your problem, please select "yes" above
0 -
To do this in Domo, you'll need to join the two datasets and then perform some calculations to compare the billable hours against the hours paid during each bi-weekly pay period.
Employee Pay Information Dataset: Employee ID, Pay Period Start Date, Pay Period End Date, and Paid Hours.Employee Work Services Dataset: Employee ID, Date of Service, and Billable Hours.
Create a pay period table.Employee ID
Pay Period Start Date
Pay Period End Date
1
2024-06-01
2024-06-14
1
2024-06-15
2024-06-28
Join the pay information dataset with the work services.
Work Services Dataset
Pay Information Dataset
Employee ID
Employee ID
Date of Service
Date between Pay Period Start Date and Pay Period End Date
Join the Result with the Pay Period Table
Result from Previous Join
Pay Period Table
Employee ID
Employee ID
Date of Service
Date between Pay Period Start Date and Pay Period End Date
Aggregate Billable Hours - Group by Employee ID, Pay Period Start Date, and Pay Period End Date. Sum the Billable Hours.
Productivity Difference: Billable Hours - Paid Hours
In SQL, something like this:** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive