web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Od5pRCtAqZUGMpXcjUGOtJ
Power Automate - Building Flows
Answered

If statement in select

Like (0) ShareShare
ReportReport
Posted on 8 Apr 2024 01:43:48 by 205

Hi all,

 

Trying to use an if statement to check if an item has reached its due date in a select step but running into some problems as the below formula is invalid. 

ccqn_0-1712540538497.png

 

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on 08 Apr 2024 at 02:42:31
    Re: If statement in select

    Hi @ccqn ,

     

    Please try:

     

    if(greater(startOfDay(item()?['Due Date']),startOfDay(utcNow())),'yes','no')

     

    Best Regads,

    Bof

  • ccqn Profile Picture
    205 on 08 Apr 2024 at 02:40:41
    Re: If statement in select

    Hi @v-bofeng-msft ,

    It says that the expression is invalid.

    ccqn_0-1712544022021.png

     

  • v-bofeng-msft Profile Picture
    on 08 Apr 2024 at 02:31:30
    Re: If statement in select

    Hi @ccqn ,

     

    Please try:

    if(
     greater(startOfDay(item()?['Due Date']),startOfDay(utcNow()),
     'yes',
     'no'
     )

     

    Best Regards,
    Bof

  • ccqn Profile Picture
    205 on 08 Apr 2024 at 02:11:01
    Re: If statement in select

    Hi @Andrew_J ,

     

    The due date an excel column. The gist of the flow is to

    1. Fetch rows from excel

    2. Create HTML table using the rows with an additional column 'Overdue' which is created by checking whether the due date is past today's date.

  • Andrew_J Profile Picture
    1,962 Moderator on 08 Apr 2024 at 02:04:09
    Re: If statement in select

    @ccqn 

     

    I do think an IF can be added there.  It needs to be calcuated before that stage but without seeing the whole of the flow and understanding where the due date is coming from I cannot advise further.

     

    Andrew

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete