Company Turnover %
I am trying to calculate the company turn over %. We are pulling data from Salesforce into Domo. We have a custom object that lists all employees. These employee have an active/inactive status and a termination date. I am trying to figure out a way to calculate the total ACTIVE by INACTIVE YTD based on that term date. Everything I have tried seems to either not work or not count properly. Is there a easy way to do this?
Answers
-
@MichelleH - I have tried to take the record Id counts of all active employees by the total separations (which worked in the opposite way, as the date filter was limiting the TOTAL active). I have also tried a few beast modes "CASE
WHEN SUM(CASE WHENUser - Active
= 'true' AND YEAR(Official_Termination_Date__c
) = YEAR(CURRENT_DATE()) THEN 1 ELSE 0 END) = 0
THEN 0
ELSE
SUM(CASE WHENUser - Active
= 'false' AND YEAR(Official_Termination_Date__c
) = YEAR(CURRENT_DATE()) THEN 1 ELSE 0 END) /
SUM(CASE WHENUser - Active
= 'true' AND YEAR(Official_Termination_Date__c
) = YEAR(CURRENT_DATE()) THEN 1 ELSE 0 END) * 100
END". Also tried to do this in MYSQL but that didnt work as expected.I basically need something to calculate the TOTAL active, by the separations.. which I even tried to load just one excel file that just listed the total active (200 EE) and tried to merge with my salesforce load, but that didnt seem to work as expected either..
0 -
What is the termination date for active users? If it's null, then it looks like you would be dividing by 0, because no active users would have a term date the same as this year. Do you even need to check the termination date of active users, since I assume the definition of active users is that they are still there this year?
Again, assuming that it's null, you could also wrap the termination dates in your BeastMode with an ifnull() that fills the null values with a date arbitrarily far in the future, and then instead of checking to see if the termination date is this year, you check to see if it is less than or equal to this year.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
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
- 738 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