Skip to main content

Notifications

Power Automate - General Discussion
Answered

IF Statements in SharePoint List

(0) ShareShare
ReportReport
Posted on by 34

I have created a flow within Power Automate that when a Form is submitted it creates an entry into a SharePoint List. Once the entry has been approved a new entry is created in a new SharePoint List, which in turn creates another item in another list (confused, I am).  I am trying to create an IF statement based on the following criteria using the following Column Headings - 'Last review date', - 'Residual Score' & 'Next review date'.

 

What I would like to happen is:

  • If the Residual Score column value is 16 or over - then the Next Review Date Column needs to be automatically populated with the date 3 months later from the last review date
  • If the Residual Score column value is between 8-15 - then the Next Review Date Column needs to be automatically populated with the date 6 months later from the last review date
  • Anything score 7 or below then the Next Review Date Column needs to be automatically populated with the date 12 months later from the last review date.

Robin_White5133_0-1661859836703.png

 

 

Is this in the art of the possible or am I trying to run before I can walk.

 

Any advice would be greatly appreciated. Thanks in advance.

  • Verified answer
    Robin_White5133 Profile Picture
    Robin_White5133 34 on at
    Re: IF Statements in SharePoint List

    Hi Anna

     

    I managed to sort it out and used the following formula:

     

    =IF(AND(ISBLANK([Residual Risk Score]),[Date Last Reviewed]<1),"",IF([Residual Risk Score]>15,DATE(YEAR([Date Last Reviewed]),MONTH([Date Last Reviewed])+3,DAY([Date Last Reviewed])),IF(AND([Residual Risk Score]>7,[Residual Risk Score]<16),DATE(YEAR([Date Last Reviewed]),MONTH([Date Last Reviewed])+6,DAY([Date Last Reviewed])),IF([Residual Risk Score]<8,DATE(YEAR([Date Last Reviewed]),MONTH([Date Last Reviewed])+12,DAY([Date Last Reviewed])),""))))

  • annajhaveri Profile Picture
    annajhaveri 8,531 on at
    Re: IF Statements in SharePoint List

    @Robin_White5133  are you trying to create expression for all three conditions? or are you adding condition actions to your flow to check the conditions? 

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard