syntax error

Who is online?  0 guests and 0 members
Home  »  Forums   »  microsoft business intelligence   »  reporting services   » syntax error

syntax error

Topic RSS Feed

Posts under the topic: syntax error

Posted: 4/10/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

hi

 

i am using this in iif

 

exp(sum(LOG(1 + Fields!item1.Value/100))) * 100

 

i m getting syntax error


Posted: 4/10/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

the real exp is like this 

 

 

(exp(sum(LOG(1+field/100)))-1)* 100  , which i m using in iif ,true part,getting syntax error


Posted: 4/10/2012

Padawan 362  points  Padawan
  • Joined on: 7/27/2010
  • Posts: 106

try this

=exp(sum(Log(1+1/Field))-1)*100


Posted: 4/10/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

but this is not my real expression,whatver logic is ther i need to apply that one only


Posted: 4/10/2012

Padawan 362  points  Padawan
  • Joined on: 7/27/2010
  • Posts: 106

=iif(exp(sum(Log(1-1/Field))-1)*100 >2,"some val","other val")

 

This is exemple what you can use in your iif statement


Posted: 4/10/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

ok.

 

i ma using this expression in my query and getting this error

Arithmetic overflow error converting expression to data type float.

 

any idea?


Posted: 4/10/2012

Padawan 362  points  Padawan
  • Joined on: 7/27/2010
  • Posts: 106

Can you locate the error?

try this

=Log(1-1/Field)

after

=sum(Log(1-1/Field))-1

next

=exp(sum(Log(1-1/Field))-1)*100

and find out the step with error


Posted: 4/10/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

its showing under log(1 + filed/100) under this


Posted: 4/10/2012

Padawan 362  points  Padawan
  • Joined on: 7/27/2010
  • Posts: 106

Can you show field values, that couse the error?


Page 1 of 1 (9 items)