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 Automate
Answered

Filter array question

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Sorry that I created the flow on filter array, like below, the expect result should be 2-Aug-2023 only,

44f044aa-813d-407a-87f4-2d4d5d854fbb.png

@And(greater(item()?['Target Date'], addDays(utcNow(),-7, 'yyyy-MM-dd')),equals(item()?['Completion Date'], ''))

 

But after ran, the result is like below,

 

2023-08-09 14_46_43-Window.png

 

Raw data:

2023-08-09 14_48_17-Window.png

 

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @RodneyCheung,

    Could you please tell me more about your requirements and scenarios?

    The expression in your filter query is get the Target Date greater than 8.2 and Completion Date is blank. (Such as 8.10/8.11....)

    If you just want to get the Target Date equal to 8.2.

    You should use the following formula:

    @And(equals(item()?['Target Date'], addDays(utcNow(),-7, 'yyyy-MM-dd')),equals(item()?['Completion Date'], ''))

     

     

    Best Regards,

    Kyrie 

  • RodneyCheung Profile Picture
    on at

    Dear Kyrie,

     

    Thank you so much for your reply,

    I want to have an email reminder if the "completion date" is empty, and check "target date" is today - 7.

    This flow will perform every day, remind us of which record is not yet completed.

    For example: today is "9-Aug-2023", then the result should be "2-Aug-2023" of record.

    But now, 10-Aug to 21-Aug of records also display on email.

     

    Excel raw data:

    2023-08-09 14_48_17-Window.png

     

    Email reminder message:

     

    2023-08-09 14_46_43-Window.png

     

    Thank you so much.

     

    Best regards,

    Rodney Cheung

     

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

    @RodneyCheung,

    Please try:

    @And(equals(item()?['Target Date'],addDays(utcNow(),-7,'yyyy-MM-dd')),equals(item()?['Completion Date'],''))
  • RodneyCheung Profile Picture
    on at

    Dear Kyrie,

     

    Thank you so much for your reply and help.

     

     

    Best Regards,

    Rodney

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 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard