Forum Discussion
Calculating work days with different RDOs
For your Employee table, do you have a column to show if current employee who has every Monday as an RDO? If you have a such column, you can use IF function to get the value from Work Days Norm for employees with no RDOs and get value from MondaysOff for employees who have every Monday as an RDO.
https://msdn.microsoft.com/en-us/library/ee634824.aspx
If this is not what you want, please elaborate your requirement, so that we can make further analysis.
Regards,
Charlie Liao
Thank you, I'm still not sure what I need in the employee table to link it to the calender table and show when they have an RDO. Currently my Emplyee table looks like this:
| Provider ID | Advisor % | Hours pd | Calendar |
| 10111922 | 100% | 7.6 | FridaysOff |
| 10112490 | 100% | 7.6 | Working Days Norm |
| 10113545 | 100% | 7.6 | Working Days Norm |
| 10112128 | 100% | 7.6 | Working Days Norm |
| 10241789 | 100% | 7.6 | Working Days Norm |
| 10116201 | 100% | 7.6 | Working Days Norm |
| 10115537 | 100% | 7.6 | Working Days Norm |
| 10113847 | 100% | 7.6 | Working Days Norm |
| 10114456 | 100% | 7.6 | Working Days Norm |
| 10115501 | 100% | 7.6 | Working Days Norm |
| 10113322 | 100% | 7.6 | Working Days Norm |
| 10112749 | 100% | 7.6 | WednesdaysOff |
| 10262115 | 100% | 7.6 | Working Days Norm |
| 10113873 | 100% | 7.6 | 2ndMonday |
| 10131994 | 100% | 7.6 | Working Days Norm |
| 10251615 | 100% | 7.6 | Working Days Norm |
| 10113238 | 100% | 7.6 | 2ndThursday |
| 10113689 | 100% | 7.6 | Working Days Norm |
| 10132550 | 100% | 7.6 | Working Days Norm |
| 10252780 | 100% | 7.6 | Working Days Norm |
| 10114178 | 100% | 7.6 | Working Days Norm |
| 10111591 | 100% | 7.6 | Working Days Norm |
| 10129156 | 100% | 7.6 | Working Days Norm |
| 10113413 | 100% | 7.6 | FridaysOff |
| 10238025 | 100% | 7.6 | WednesdaysOff |
How do I link this to my calendar table? Once linked how do I write the IF function to deal with the different RDOs? Sorry I'm a bit overwhelmed by it all. Thanks, Emma.