I need to flag records that are either 15% or 30%. The first WHEN argument works, but the will not verify when the second argument is added. Error "near ("
CASE
WHEN SUM([@calcfield:4])/AVG([@calcfield:7]) <=.015 THEN '15%'
WHEN SUM([@calcfield:4])/AVG([@calcfield:7]) <=.03 AND >=.016 THEN '30%'
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Hiperf
I need to flag records that are either 15% or 30%. The first WHEN argument works, but the will not verify when the second argument is added. Error "near ("
CASE
WHEN SUM([@calcfield:4])/AVG([@calcfield:7]) <=.015 THEN '15%'
WHEN SUM([@calcfield:4])/AVG([@calcfield:7]) <=.03 AND >=.016 THEN '30%'
ELSE ''
END
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.