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

Announcements

News and Announcements icon
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:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard