cancel
Showing results for
Did you mean:

## 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.

1 ACCEPTED SOLUTION

Accepted Solutions
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.
3 REPLIES 3
Super User

You can define a var to do it

Set( varScore; NUMBER)

Then use a switch to the values

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.

Thank you kind sir! Worked like a charm😊

Announcements

#### Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

#### Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!