Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB7. Compute Field.Compute Expression Help

$
0
0

Friends,

 

formula 1:

Sum( If( compute_6 = "Fail", 1, 0 ) For Group 1 ) === failed count

 

Formula 2:

count( compute_6 for group 1 )   ===== no. of rows

 

i am not able to use the below code. can anybody correct me the code?

 

if Sum( If( compute_6 = "Fail", 1, 0 ) For Group 1 ) >= 3 then "Ask your ward to see the class teacher"

else if

Sum( If( compute_6 = "Fail", 1, 0 ) For Group 1 ) <= 2 then "Ask your ward to concentrate more on the failed subjects"

else if

Sum( If( compute_6 = "Pass", 1, 0 ) For Group 1 ) = count( compute_6 for group 1 ) then "Well Done Keep it up"

end if

 

 

 

thanks..


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>