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

#### April 4th Copilot Studio Coffee Chat | Recording Now Available

Did you miss the Copilot Studio Coffee Chat on April 4th? This exciting and informative session with Dewain Robinson and Gary Pretty is now available to watch in our Community Galleries!   This AMA discussed how Copilot Studio is using the conversational AI-powered technology to aid and assist in the building of chatbots. Dewain is a Principal Program Manager with Copilot Studio. Gary is a Principal Program Manager with Copilot Studio and Conversational AI. Both of them had great insights to share with the community and answered some very interesting questions!     As part of our ongoing Coffee Chat AMA series, this engaging session gives the Community the unique opportunity to learn more about the latest Power Platform Copilot plans, where we’ll focus, and gain insight into upcoming features. We’re looking forward to hearing from the community at the next AMA, so hang on to your questions!   Watch the recording in the Gallery today: April 4th Copilot Studio Coffee Chat AMA