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 Apps / IsEmpty with a LookUp ...
Power Apps
Answered

IsEmpty with a LookUp on a CDS Data Source always returns false

(0) ShareShare
ReportReport
Posted on by 82

If I use IsEmpty to test whehter lookup is returning any record, it always returns false. But with the same data source if I use IsBlank then it work as expected...

If(

IsEmpty(LookUp([@'CDS DS'], some filters)),

//do somthing, it will never get here...

)

 

If(

IsBlank(LookUp([@'CDS DS'], some filters)),

//do somthing, it will work as expected

)

 

I thought IsEmpty is the one to be used with a table and IsBlank with  a string...

what have I missed here? Why IsEmpty is always returning false...?

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @xyd ,

    IsEmpty only with String like no character, 

    For More Information please see the below url.
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-isblank-isempty

     

    Hope this will help you to understand more about IsBlank or IsEmpty Function behavior.

    Thanks,
    Vijay

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay



  • Verified answer
    shennu Profile Picture
    82 on at

    Hey @VijayTailor 

     

    Had another closer look at the reference on IsBlank, IsEmtpy and found

    " the IsBlank and Coalesce functions test for both blank values or empty strings." ...

    "In the context of the IsEmpty function, empty is specific to tables that contain no records."

     

    So it all making sense now.

    coz I am using LookUp and that will return a record I guess that doesn't really qualify as a table.

     

    Thanks anyways.

    Xun

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard