473,394 Members | 1,817 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,394 software developers and data experts.

I'm trying to get I think it’s called a rolling scale.

I'm trying to get I think it’s called a rolling scale.
I have 500 records but I would like the rolling scale to rate them from 1-5 with 1 being the best.
The formula I thought would work was "3Month_0to5Rank: [3MonthRank]/([Past_3_Month#]-1)*5" but turns out if keeps going after 5 or I tried switching the formula it gives me more weird numbers.

I really appreciate you taking the time for assist me with this problem.

The formula below worked for a different query but now it is giving me from 0.00125 to 1253.21500

3Month_0to5Rank: [3MonthRank]/([TotalRecords]-1)*5

[SQL]
SELECT [CUSB_Rank tbl_1].[OMNI#], [CUSB_Rank tbl_1].[TotaRecords$], [CUSB_Rank tbl_1].[TotaRecords#], [CUSB_Rank tbl_1].Jan_Loan_Amount, [CUSB_Rank tbl_1].Jan_App_Count, [CUSB_Rank tbl_1].Feb_Loan_Amount, [CUSB_Rank tbl_1].Feb_App_Count, [CUSB_Rank tbl_1].Mar_Loan_Amount, [CUSB_Rank tbl_1].Mar_App_Count, [CUSB_Rank tbl_1].Apr_Loan_Amount, [CUSB_Rank tbl_1].Apr_App_Count, [CUSB_Rank tbl_1].May_Loan_Amount, [CUSB_Rank tbl_1].May_App_Count, [CUSB_Rank tbl_1].Jun_Loan_Amount, [CUSB_Rank tbl_1].Jun_App_Count, [CUSB_Rank tbl_1].Jul_Loan_Amount, [CUSB_Rank tbl_1].Jul_App_Count, [CUSB_Rank tbl_1].Aug_Loan_Amount, [CUSB_Rank tbl_1].Aug_App_Count, [CUSB_Rank tbl_1].Sept_Loan_Amount, [CUSB_Rank tbl_1].Sept_App_Count, [CUSB_Rank tbl_1].Oct_Loan_Amount, [CUSB_Rank tbl_1].Oct_App_Count, [CUSB_Rank tbl_1].Nov_Loan_Amount, [CUSB_Rank tbl_1].Nov_App_Count, [CUSB_Rank tbl_1].Dec_Loan_Amount, [CUSB_Rank tbl_1].Dec_App_Count, [CUSB_Rank tbl_1].First_3_Month_Loan_Amount, [CUSB_Rank tbl_1].First_3_Month_App_Count, [CUSB_Rank tbl_1].First_6_Month_Loan_Amount, [CUSB_Rank tbl_1].First_6_Month_App_Count, [CUSB_Rank tbl_1].First_9_Month_Loan_Amount, [CUSB_Rank tbl_1].[9Month_App_Count], [CUSB_Rank tbl_1].[12_Month_Loan_Amount_10], [CUSB_Rank tbl_1].[12Month_App_Count_10], [CUSB_Rank tbl_1].First_12_Month_App_Count, [CUSB_Rank tbl_1].[Past_3_Month$], [CUSB_Rank tbl_1].[Past_3_Month#], [CUSB_Rank tbl_1].[Past_6_Month$], [CUSB_Rank tbl_1].[Past_6_Month#], [CUSB_Rank tbl_1].[Past_9_Month$], [CUSB_Rank tbl_1].[Past_9_Month#],

[CUSB_Rank tbl_1].[Past_12_Months$], (Select count(*) from [CUSB_Rank tbl_1] as B where [CUSB_Rank tbl_1].[Past_3_Month#] < B.[Past_3_Month#]+1) AS 3MonthRank, [3MonthRank]/([Past_3_Month#]-1)*5 AS 3Month_0to5Rank INTO CUSB_Master_Table FROM [CUSB_Rank tbl_1];[/sql]

Thanks again
Corey
Jan 14 '11 #1
2 1100
Rabbit
12,516 Expert Mod 8TB
This is the seventh thread you've created regarding ranking records. What is it you're trying to accomplish and why do you keep creating threads and abandoning then?
Jan 14 '11 #2
I wasn’t quit sure what it is called but I have a list of reps that I'm using a Rank formula that ranks my reps buy the number of apps they get.

So now that I have their rank, I would like to put them in a scale from 1-5 with one being the best.

In excel the formula looks like this
Expand|Select|Wrap|Line Numbers
  1. =5-(AL3/MAX($AL$3:$AL$9913)*5)
Thanks Rabit
Jan 14 '11 #3

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

Similar topics

3
by: Craig Joyce | last post by:
Hi!, I want to make a class that may do the following: class T { ...... } int main()
4
by: Stan | last post by:
When a webservice is called through BeginInvoke asynchrously and an exception is thrown, this exception is not propagated to the client (obviously). Asynch client simply does not care about it. ...
1
by: Just Me | last post by:
Just as I, an object of the class human, know my name I wonder if an object of some VB.Net class knows it's name. That is, if an object resides on a form and is called TextBox25, can the object...
269
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
4
by: Matthew Crouch | last post by:
i suck so much that i don't even know if this is a JOIN or a subquery or who-knows what. Here's the idea: I want to select two things at the same time (form one table) average for columnX and...
2
by: ygao | last post by:
when a function or method is called,how can get the module global symbol table from which it is called,not the module where it is defined(this is easy). thanks!
1
by: codercoder | last post by:
I have on method call another method NotificationWndProc to create a notification window, which will receive messages. At the first time, things are running OK, but in the second time, it returns...
5
by: Bruno Rafael Moreira de Barros | last post by:
function test1() { trigger_error('My error'); } application.php //code... test1(); //code...
6
by: ranin02 | last post by:
Hi, I have a COM method that is called from VBA. This COM method in turn calls CoCreateInstance on a class that is a .NET class with a COM wrapper around it. This all works fine. However,...
7
by: Thomascountz | last post by:
I'm completely new to python, I just started about 3 days ago. I've requested some books from my library on python, so I hope I'm headed in the right direction. I hate to ask this because I'm sure...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.