473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Maybe IIF, I don't know!!!!!

Presto731
I have a table that monitors employees performance on 10 different categories. For each category they receive a percentage. Each range of percentages is assigned a number.

For example. If for category 1 they have 85% their score would be x. So 0-19% is one pint, 20-29% is 2 points, so on down the line to 100%. each category has different ranges and point values.

I have never had to write such large IIF statement for each column of a query. Not even sure if thats the route I need to take.

Suffice it to say I want to have a query off this table that spits out each employess point total for each category.

I will take any and all suggestions. let me know if you need more info.

Please help, I have deadlines to meet :D

Thannk you in advance.
Feb 4 '08 #1
3 1093
jaxjagfan
254 Expert 100+
I have a table that monitors employees performance on 10 different categories. For each category they receive a percentage. Each range of percentages is assigned a number.

For example. If for category 1 they have 85% their score would be x. So 0-19% is one pint, 20-29% is 2 points, so on down the line to 100%. each category has different ranges and point values.

I have never had to write such large IIF statement for each column of a query. Not even sure if thats the route I need to take.

Suffice it to say I want to have a query off this table that spits out each employess point total for each category.

I will take any and all suggestions. let me know if you need more info.

Please help, I have deadlines to meet :D

Thannk you in advance.
Are all 10 categories evenly weighted? Does each count for 10% of the total possible? It would not hurt to add a "Weight" column to your "categories" table.
When the employee receives a score for a category divide the score by the category weight.

If an employee received an 85 for category1 and category1 weight is 10 then employee score would be 8.5 (85/10). You could adjust weights (some may be more important than others) but just make sure the total weight equals 100.

I think you were making it harder than it needs to be.
Feb 4 '08 #2
The categories are weighted and are reflected in the amount of points they get within each range, each percentage range is also different for each category.
Feb 4 '08 #3
jaxjagfan
254 Expert 100+
The categories are weighted and are reflected in the amount of points they get within each range, each percentage range is also different for each category.
If you divide score by weight you don't need a range.

85 would fall into your range of 80-90. 8 or 9 points depending on you set that range. My method gives them a score of 8.5. You can use the Round function to round the score to the nearest whole number.

Using your method you would need a points table with CategoryID, RngLow, RngHigh, Points columns. (This would be easier than maintaining a bunch of "IIF" statements in a query). You would need to write your query to lookup points based on something similar to this:
Expand|Select|Wrap|Line Numbers
  1. Select Points
  2. From "yourjoined tables"
  3. Where EmployeeScore Between RngLow and RndHigh AND EmpCategoryID = CategoryID
  4.  
Feb 4 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Farooq Khan | last post by:
hi, my development team has been assigned a project that involves writing our own Web service. i happen to be a C++ programmer, new to C#/ASP.net. i dont know where to begin with......any...
1
by: Pavel Novotný | last post by:
H I'm trying to import a | seperated text from string variable which represents a tabl with several fields, eg 6124079|PRIRUBA 11 DN250 PN6;CSN131160.0;11369.1;CSN131005.50|KS|11,100000|3437,...
0
by: arunavlp | last post by:
hi, I am new to .net , i am using VB.Net (Web form). I dont know how to pass parameters to stored function. Regards, Arun.S
2
by: hojjatnikan | last post by:
please help me this code 62EH&5gx0wiqoQFw is this name ( Belux) but i dont know how convert it i dont know the algorithm of this code plead help me
2
by: Tiruak | last post by:
Hi there. Thanks in advance for the people reading and trying to help. I'm very begginer using flash and action script, and I tryed to do this one navigation menu. Since I dont have experience...
2
by: Sreenivas | last post by:
I dont know how to compile cpp programs with gcc as i am new to gcc and cpp. could anybody help me out? Thanks&Regards, Srinivas Reddy Thatiparthy.
2
by: shwetaT | last post by:
i m working in php domain and i dont know much about php,so will u plz suggest me some good sites through which i learn php very well n fast
8
risk32
by: risk32 | last post by:
Hi all. I have a really confusing problem. I'm using Swing and I'm trying to do a confirmation box : int reply; String message = "Do you want to input another number?"; String title = "Input...
2
by: sailormoon | last post by:
this information i put in data.txt 11221 MOHD IRFAN 80 70 11222 NURUL FITRAH 80 90 11223 MOHD FARHAN 70 80 11224 WAFFIN WARDAH 80 60 11225 SYAMSUL 50 50 99999 TAMAT 0 0 #include<fstream.h>
2
by: sometingsometing | last post by:
hi, I am new and dont know what went wrong. from Tkinter import * import tkMessageBox from pysqlite2 import dbapi2 as sqlite class door: global simpleprint
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.