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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Query - Contain...
Power Automate
Answered

Filter Query - Contains() - not empty

(1) ShareShare
ReportReport
Posted on by 84
Hi there,
Just a simple question for filtering a SharePoint list via "Get Items".
 
The first filter looks for dates that are 7 days in the future - works fine "formatDateTime(addDays(utcNow(), 7), 'yyyy-MM-dd')"
and now I want to add a filter for all entries that are not empty/blank in the "Info" column - they just have to contain something.
 
 
Date eq 'formatDateTime(addDays(utcNow(), 7), 'yyyy-MM-dd')' and ne '' - does not work.
 
Any ideas how to make it work?
Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Try:
    Date eq 'formatDateTime(addDays(utcNow(), 7), 'yyyy-MM-dd')' and Date ne null
    
    
    Are you easily stumped when working with Dates in Power Automate? In this Power Automate tutorial, I’ll show you how to compose an expression that will return a future date, a past date, how to count the number of days between two dates, how to check for a birthdate and anniversary date as well as tips and tricks when working with dates in Power Automate.
     
    I’ll cover some common use cases and concepts that can help you to build better Power Automate flows.
     
     
    IN THIS VIDEO:
    ✅ 4 Date Functions You Need to Know
    ✅ How to use the Convert Time Zone Action
    ✅ How to Get a Future Date
    ✅ How to Get a Past Date
    ✅ How to Return SharePoint Items Due in a Number of Days
    ✅ How to Return SharePoint Items Due within a Date Range
    ✅ How to write a Filter Query for SharePoint Items Due in 30, 60 and 90 Days
    ✅ How to Calculate the Number of Days between Two Dates
    ✅ How to Check for a Birthdate and Anniversary Date
    ✅ How to work with Dates and Times in Excel
    ✅ How to use a Manual Trigger with Date Input
    ✅ How to Output Dynamic Text with an Expression
    ✅ How to Check if a Date Falls on a Weekend
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • PowerAppUser98 Profile Picture
    84 on at
    @creativeopinion thank you it finally worked

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard