Trying to calculate percentage as an advanced expression in query builder

Reply
Occasional Contributor
Posts: 9

Trying to calculate percentage as an advanced expression in query builder

I am no where as advanced as you guys, I am trying to figure percentages as one of my table fields/another table field-was trying to do this as an advanced expression to give me a percentage.. can anyone assist in the correct language? would be much appreciated, i am still new to this, thanks!

ex: t1.NCOVD_CHRG_AMT/t1.TOT_CHRG

that's what i was using as advanced expression (don't laugh pls)

then i got error

_______

22

76

Error 22-322: syntax error, expecting one of the following: ',', Group, Having, Order, Where.

error, statement will be ignored

Super User
Posts: 19,860

Re: Trying to calculate percentage as an advanced expression in query builder

So this is in EG? You may want to post it in that forum. 

What version of EG and can you provide more details on your data and calculation, and the full code that causes the error.

Usually its straight division and then apply a format of percent to the data.

Occasional Contributor
Posts: 9

Re: Trying to calculate percentage as an advanced expression in query builder

yes it is in EG, geez, where is that forum, i wil look, thank you!

Contributor
Posts: 21

Re: Trying to calculate percentage as an advanced expression in query builder

Aalcorn,

It is obvious that there is no syntax error in the excerpt of code you posted.

It would not be possible to help you, unless you provide more, preferably all, query code.

Ask a Question
Discussion stats
  • 3 replies
  • 332 views
  • 0 likes
  • 3 in conversation