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 / Filter Query for Dates...
Power Automate
Answered

Filter Query for Dates keeps returning no values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi I am trying to send out an attendance list to the person incharge based on the dates 

porcoesphino_0-1691073702704.png

I made sure to input the dates into the ISO format, my flow looks like this 

porcoesphino_1-1691073816304.png

for the date i want it to filter formula: formatDateTime(addHours(utcNow(),8),'yyyy-MM-dd')

porcoesphino_2-1691073901267.png

The above was returned, I tried filter arrays too but it doesnt return any values. 

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Anonymous 

     

    The expression formatDateTime(addHours(utcNow(),8),'yyyy-MM-dd') will return the today's date as you are adding 8 hours to current datetime (utcnow()). Pls check if in the excel sheet there is a record for today's date.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @ManishSolanki 

    yup i can confirm 

    porcoesphino_0-1691076436086.png

    not sure whats wrong with the filter 

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    If you don't put the filter and get rows, what do the date outputs look like? Can you show a screenshot similar to where you showed the empty items value[] highlighted

     

    (Just need an example output of 1 or 2 rows, you can set the Top Count to like 3 or something.)

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @wskinnermctc 

     

    is this what you meant by the outputs

    porcoesphino_0-1691135553571.png

     

    I did some tweaking and set the sourcefile date format to dd/MM/yyyy and this time round it did not return null values but the correct ones

    porcoesphino_1-1691135691266.png

    despite this im scratching my head, however now, when i want to add a row into another table based on the filtered query all the values are blank. is there a need to use compose ?

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Great! So you solved the initial filter issue that you had.

     

    The first thing you had in the Filter Query was:

    Notification eq 'formatDateTime(addHours(utcNow(),8),'yyyy-MM-dd')'

    This was not returning any values because the actual outputs of the Notification dates that are being pulled in from Excel are in the dd/MM/yyyy format; even though the visible view in the Excel worksheet of the Notification dates are in the yyyy-MM-dd format.

     

    So you had to correct the Filter Query to match the outputs which will be:

    Notifications eq 'formatDateTime(addHours(utcNow(),8),'dd/MM/yyyy')'

     

    Good job checking the outputs and correcting the problem, you'll probably have to do that a lot with power automate.

     

    Now you have another question or issue, but I don't know what the rest of your flow looks like or what you are trying to accomplish?

     

    Are you trying to add all of the rows you pulled into another workbook or other table?

     

    Is the other table already established in a separate workbook?

     

      

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @wskinnermctc 

     

    yes i seem to have resolved the issue, by matching the outputs from the excel online file.

    Summary of the flow:

    1. I am hoping extract the rows of data with the same date into another file. 

    2. the flow will proceed to count the number of IDs corresponding to the date. 
    3. if the No. of IDs corresponding to the date

        a.  if the count is less than 3 it will inform the organizer the event is cancelled 

        b, if its more than three, it will send out the file confirming that the event is a go

     

    However now when it adds a row into another file, all the data is blank. Kindly see below

    porcoesphino_0-1691321558311.png

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard