web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Grading Scale Calculation
Power Apps
Answered

Grading Scale Calculation

(0) ShareShare
ReportReport
Posted on by 151

Hello,

 

I am trying to create a basic grading scale of

90-100 %= A

80-89 %= B

etc

 

right now my code is 

 

If (

Value(TextInput2.Text) = Blank(), Blank(),
Value(TextInput2.Text) >= 0.9 , "A" ,
Value(TextInput2.Text) <= 0.89 Or Value(TextInput2.Text) >= 0.80 , "B",
Value(TextInput2.Text) <=0.79 Or Value(TextInput2.Text) >= 0.70 , "C",
Value(TextInput2.Text) <=0.69 Or Value(TextInput2.Text) >= 0.60 , "D",
Value(TextInput2.Text) <= 0.59 , "F"
)

 

But this is invalid and my calculation is stuck on B even when its lower than 0.80, looking for some tips for adjustments.

 

thanks

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    Hi @Jakegolden 

    This syntax should hopefully work.

    With({input:Value(TextInput2.Text)},
     If(
     IsBlank(input),"",
     input >= 0.9, "A",
     input >= 0.8, "B",
     input >= 0.7, "C",
     input >= 0.6, "D",
     "Fail"
     )
    )

    There are more details about this technique in my post here.
    http://powerappsguide.com/blog/post/formula-how-to-use-the-if-and-switch-functions

     

  • Jakegolden Profile Picture
    151 on at

    Hey @timl 

     

    thank you for the quick reply. Appears I was lost in the weeds by trying both the <> symbols within my code. But your solution works perfectly, thank you very much. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard