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

Error: "The Expression is too complex"

Hello,

I receive the following error "This expression is typed incorrectly, or it is too complex to be evaluated. For Example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables"

Here is the expression that causes the error:
Clos_Score: 1-Exp([Rur_Calc])/1+Exp([Rur_Calc])

The expression is referencing this expression which has no errors:

Rur_Calc: 5.4698+3.2626*[FLLCACL]-1.0891*[FLLTATL]-16.7608*[FLLTAPTR]-1.7131*[FLLTRTEQ]-1.8298

I put an actual number in the for Rur_Calc in the expression that gives me the error and there are no errors, so I am assuming the Expression is too complex? Any suggestions to correct this error would be greatly appreciated since this is thee last step of my calculation.

Thanks!
Feb 6 '14 #1
6 2142
mcupito
294 256MB
Did you try:

Expand|Select|Wrap|Line Numbers
  1. Clos_Score: (1-Exp([Rur_Calc]))/(1+Exp([Rur_Calc]))
?

Be weary of calculations in queries - don't forget your order of operations.
Feb 6 '14 #2
Yes, I tried that and same error. I mentioned in my original post that when I put a fixed number in the place of [Rur_Calc] the calculation is correct, but [Rur_Calc] appears to be a complex expression.
Feb 6 '14 #3
mcupito
294 256MB
Are you trying to reference an expression that you are compiling in the same query? That won't work.

For example, if I have the expressions:
Expand|Select|Wrap|Line Numbers
  1. Increase: [FinanceTbl]![Total] - [FinanceTbl]![Expenses]
And I try to use [Increase] in the same query, it won't work. You must create a new query and use your existing query as the foundation Edit: Or see ADezii's post.
Feb 6 '14 #4
ADezii
8,834 Expert 8TB
Try including the Expression within [Clos_Score] directly and see what happens:
Expand|Select|Wrap|Line Numbers
  1. Clos_Score: 1-Exp(5.4698+3.2626*[FLLCACL]-1.0891*[FLLTATL]-16.7608*[FLLTAPTR]-1.7131*[FLLTRTEQ]-1.8298)/
  2. 1+Exp(5.4698+3.2626*[FLLCACL]-1.0891*[FLLTATL]-16.7608*[FLLTAPTR]-1.7131*[FLLTRTEQ]-1.8298)
  3. 5.4698+3.2626*[FLLCACL]-1.0891*[FLLTATL]-16.7608*[FLLTAPTR]-1.7131*[FLLTRTEQ]-1.8298
Feb 6 '14 #5
Your advice worked. Thank You!
Feb 6 '14 #6
ADezii
8,834 Expert 8TB
You are quite welcome.
Feb 7 '14 #7

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

Similar topics

1
by: der | last post by:
The expression isn't a = 1 - (1-), but: a = -1 - (1)
2
by: deko | last post by:
SELECT Nz(Min(),#1/1/1000#) AS NextAppt, Appt_ID FROM tblAppointments WHERE Entity_ID=!! AND ApptDate>=Date() If I do not include Appt_ID, it works fine. But I need the ID so I can join other...
4
by: Saso Zagoranski | last post by:
Hi! I have created an SqlCommand object and I have set some parameters to it... One of the parameters is of the DateTime type; here is the code: sqlCommand.Parameters.Value =...
1
by: parveen.beniwal | last post by:
hi all i am having the following line of code in my mak file. !IF "$(CFG)" == "" CFG=DesktopCommon - Win32 Release !MESSAGE No configuration specified. Defaulting to DesktopCommon -...
2
by: Hulikal | last post by:
Hi, I using the following query select dateadd(s, 1185255439727, '01-01-1970 05:30:00') on MSSQL 2005. I get the error Arithmetic overflow error converting expression to data type...
1
by: ashiremath | last post by:
Hi All Below the code giving me the error is Constant expression is required. Please help me for this program. Private Sub Send_InputChoice() Dim Input_String As Integer ...
1
by: opcs | last post by:
here is my complete code, can any one help me why does this error occurs and how to resolve it. also, error is at the line "list.hdr =(list *) malloc(sizeof(struct SkipList));" is the size...
2
by: lordhoban | last post by:
My program was running fine under visual studio, but I moved it over to Linux, and have run into one problem I have no idea how to fix. error: expected expression before 'int' (all the...
3
syedshaffee
by: syedshaffee | last post by:
Hey People, I'm Getting "arithmetic overflow error converting expression to data type int" While Updating And Deleting Please Look @ the Following Attachment Below And This...
4
by: KBeggs | last post by:
Hi. I'm working on a program for a class that requires me to make a checking account simulator. However, every time I try to compile it, I get errors. I have gotten it down to very minimal errors,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.