cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinBlack
Frequent Visitor

Help needed with formula

Hi all

PowerApps / Sharepoint beginner here.

I realise this is a PowerApps forum but I'm unable to move forward to PowerApps without resolving this issue with SP, so I'm hoping someone can help.

 

In Sharepoint I've created a list with which I intend to build an app in Power Apps. 

 

  • One of the columns in the list is called 'total'
  • Another column is called 'rating'.
  • 'rating' is a 'calculated' column
  • In the 'rating' column I want to give a rating (number) that depends on the number in 'total'
    For example:
    If the 'total' is between 1 and 5 then the rating should be 1
    If the 'total' is between 6 and 10 then the rating should be 2
    If the 'total' is between 11 and 15 then the rating should be

I've been trying out different formulas with no success and am hoping someone here can help.  I can't move on to PowerApps until I sort this, I'm pretty sure the answer is simple but at present it is beyond me.

 

Best wishes

Martin

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: Help needed with formula

Try the following in the rating column.  Make sure both rating and total are numeric columns

=IF(source<6,1,IF(source>10,3,2))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Dual Super User
Dual Super User

Re: Help needed with formula

For that you can expand the pattern of the formula with another If statement like this

=IF(source<6,1,IF(source>15,4,IF(source>10,3,2))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: Help needed with formula

Try the following in the rating column.  Make sure both rating and total are numeric columns

=IF(source<6,1,IF(source>10,3,2))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

MartinBlack
Frequent Visitor

Re: Help needed with formula

Hi @Pstork1 many thanks for the response.  That formula works!

MartinBlack
Frequent Visitor

Re: Help needed with formula

How does the forumual change if I have four ratings?:

 

If the 'total' is between 1 and 5 then the rating should be 1
If the 'total' is between 6 and 10 then the rating should be 2
If the 'total' is between 11 and 15 then the rating should be 3

If the 'total' is between 16 and 20then the rating should be 4

 

Many thanks

Dual Super User
Dual Super User

Re: Help needed with formula

For that you can expand the pattern of the formula with another If statement like this

=IF(source<6,1,IF(source>15,4,IF(source>10,3,2))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

MartinBlack
Frequent Visitor

Re: Help needed with formula

thank you

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (9,111)