Patrick0329 Posted June 22, 2022 Report Share Posted June 22, 2022 Hi all! Below is the search result of my data page. I want to interpret the General Average this way, <=75 FAILED <=90 PROMOTED <=94 PROMOTED WITH HONOR <=97 PROMOTED WITH HIGH HONOR <=100 PROMOTED WITH HIGHEST HONOR my General average is calculated by this formula Round(AVG,0) Thank you hope someone can help... Quote Link to comment Share on other sites More sharing options...
0 Queso Posted June 22, 2022 Report Share Posted June 22, 2022 Hi! Maybe you can add another aggregate function element on the report and paste the following formula there: CASE WHEN Round(AVG([@field:Final]),0) <= 75 THEN 'Failed' WHEN Round(AVG([@field:Final]),0) > 75 AND Round(AVG([@field:Final]),0) <= 90 THEN 'PROMOTED' WHEN Round(AVG([@field:Final]),0) > 90 AND Round(AVG([@field:Final]),0) <= 94 THEN 'PROMOTED WITH HONOR' WHEN Round(AVG([@field:Final]),0) > 94 AND Round(AVG([@field:Final]),0) <= 97 THEN 'PROMOTED WITH HIGH HONOR' WHEN Round(AVG([@field:Final]),0) > 97 AND Round(AVG([@field:Final]),0) <= 100 THEN 'PROMOTED WITH HIGHEST HONOR' ELSE '' END Change the Final field in the formula to the field name of your 'Final' column. Hope this helps! Patrick0329 1 Quote Link to comment Share on other sites More sharing options...
0 Patrick0329 Posted June 23, 2022 Author Report Share Posted June 23, 2022 Thanks it works but the average dis appear. I want to achieve pic no. 2 hope you can help me. Quote Link to comment Share on other sites More sharing options...
0 Queso Posted June 23, 2022 Report Share Posted June 23, 2022 Hey! No problem! Try this formula instead: CASE WHEN Round(AVG([@field:Final]),0) <= 75 THEN Left((CAST((Round(AVG([@field:Final]),0)) as VARCHAR)),2) + ' - ' + 'FAILED' WHEN Round(AVG([@field:Final]),0) > 75 AND Round(AVG([@field:Final]),0) <= 90 THEN Left((CAST((Round(AVG([@field:Final]),0)) as VARCHAR)),2) + ' - ' + 'PROMOTED' WHEN Round(AVG([@field:Final]),0) > 90 AND Round(AVG([@field:Final]),0) <= 94 THEN Left((CAST((Round(AVG([@field:Final]),0)) as VARCHAR)),2) + ' - ' + 'PROMOTED WITH HONOR' WHEN Round(AVG([@field:Final]),0) > 94 AND Round(AVG([@field:Final]),0) <= 97 THEN Left((CAST((Round(AVG([@field:Final]),0)) as VARCHAR)),2) + ' - ' + 'PROMOTED WITH HIGH HONOR' WHEN Round(AVG([@field:Final]),0) > 97 AND Round(AVG([@field:Final]),0) <= 100 THEN Left((CAST((Round(AVG([@field:Final]),0)) as VARCHAR)),2) + ' - ' + 'PROMOTED WITH HIGHEST HONOR' ELSE '' END Quote Link to comment Share on other sites More sharing options...
0 Patrick0329 Posted June 25, 2022 Author Report Share Posted June 25, 2022 Thank you! Formula is valid and working, only it widens the space in Final. Quote Link to comment Share on other sites More sharing options...
Question
Patrick0329
Hi all!
Below is the search result of my data page. I want to interpret the General Average this way,
<=75 FAILED
<=90 PROMOTED
<=94 PROMOTED WITH HONOR
<=97 PROMOTED WITH HIGH HONOR
<=100 PROMOTED WITH HIGHEST HONOR
my General average is calculated by this formula Round(AVG,0)
Thank you hope someone can help...
Link to comment
Share on other sites
4 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.