cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ClipperSun
Helper I
Helper I

Calculated grading depending on score value

I have a rating score column and a grading column. I want to filter grade choice on the basis of the rating score.

IF  0-3     then    -  Not met KPIs / Expectation
   >3 = 5 then    - Met most KPIs / Expectation
   >5 =7  then    - Met KPIs / Expectation
   >7 <10 then   - Exceeded KPIs / Expectation
           10 then   - Far exceeded KPIs / Expectation

 

In the below example I want Grading to be "Met KPIs / Expectation". Thank you in advance you wonderful people.

ClipperSun_0-1628168625884.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

An If() statement can handle this for you. Making an assumption about the name of the rating score control:

If(
    Value(RatingScore.Text) <= 3, "Not met KPIs / Expectation",
    Value(RatingScore.Text) <= 5, "Met most KPIs / Expectation",
    Value(RatingScore.Text) <= 7, "Met KPIs / Expectation",
    Value(RatingScore.Text) < 10, "Exceeded KPIs / Expectation",
    "Far exceeded KPIs / Expectation"
)

 This statement returns a string, so it should go in the Text property of a label.

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Nogueira1306
Community Champion
Community Champion

You can define a var to do it

Set( varScore; NUMBER)

 

Then use a switch to the values

BCLS776
Super User
Super User

An If() statement can handle this for you. Making an assumption about the name of the rating score control:

If(
    Value(RatingScore.Text) <= 3, "Not met KPIs / Expectation",
    Value(RatingScore.Text) <= 5, "Met most KPIs / Expectation",
    Value(RatingScore.Text) <= 7, "Met KPIs / Expectation",
    Value(RatingScore.Text) < 10, "Exceeded KPIs / Expectation",
    "Far exceeded KPIs / Expectation"
)

 This statement returns a string, so it should go in the Text property of a label.

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

Thank you kind sir! Worked like a charm😊

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,599)