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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / If statement in select
Power Automate
Answered

If statement in select

(0) ShareShare
ReportReport
Posted on 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

 

Categories:
I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @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

  • ccqn Profile Picture
    205 on at

    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.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ccqn ,

     

    Please try:

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

     

    Best Regards,
    Bof

  • ccqn Profile Picture
    205 on at

    Hi @v-bofeng-msft ,

    It says that the expression is invalid.

    ccqn_0-1712544022021.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ccqn ,

     

    Please try:

     

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

     

    Best Regads,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard