skwilliams
Registered User.
- Local time
- Today, 07:08
- Joined
- Jan 18, 2002
- Messages
- 516
I'm trying to use a switch function to score individuals. It calculates a score based on LlSl (a skill level), and falling with this range LlNeMPO (Minutes per order) to get LlPrRa (Score).
This switch function produces the error "The expression you entered is too complex."
Any workarounds to keep the calculations within the query??
This switch function produces the error "The expression you entered is too complex."
Any workarounds to keep the calculations within the query??
Code:
LlPrRa: Switch (LlSl=1 and LlNeMPO>=2.8752, 1, LlSl=1 and LlNeMPO>=2.5001 and LlNeMPO <=2.8751, 2, LlSl=1 and LlNeMPO>=2.125 and LlNeMPO <=2.5, 3, LlSl=1 and LlNeMPO>=1.75 and LlNeMPO <=2.1249, 4, LlSl=1 and LlNeMPO <=1.7499, 5, LlSl=2 and LlNeMPO>=2.5302, 1, LlSl=2 and LlNeMPO>=2.2001 and LlNeMPO <=2.5301, 2, LlSl=2 and LlNeMPO>=1.87 and LlNeMPO <=2.2, 3, LlSl=2 and LlNeMPO>=1.54 and LlNeMPO <=1.8699, 4, LlSl=2 and LlNeMPO <=1.5399, 5, LlSl=3 and LlNeMPO>=2.0702, 1, LlSl=3 and LlNeMPO>=1.8001 and LlNeMPO <=2.0701, 2, LlSl=3 and LlNeMPO>=1.53 and LlNeMPO <=1.8, 3, LlSl=3 and LlNeMPO>=1.26 and LlNeMPO <=1.5299, 4, LlSl=3 and LlNeMPO <=1.2599, 5, LlSl=4 and LlNeMPO>=1.7252, 1, LlSl=4 and LlNeMPO>=1.5001 and LlNeMPO <=1.7251, 2, LlSl=4 and LlNeMPO>=1.275 and LlNeMPO <=1.5, 3, LlSl=4 and LlNeMPO>=1.05 and LlNeMPO <=1.2749, 4, LlSl=4 and LlNeMPO <=1.0499, 5)