Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Lookup returns blank but Isblank returns false

(1) ShareShare
ReportReport
Posted on by 19

Hello,

I want to use lookup to check if one item exist in my list, 

 

When I use:

LookUp('List','Number'=Gallery1.Selected.Number,'Title'), it shows Blank.
Mmaayy999_1-1720430085955.png

However when I add "IsBlank" or "=Blank()", it shows false...

Mmaayy999_3-1720430230992.png

Anybody knows why?


 

  • WarrenBelz Profile Picture
    146,702 Most Valuable Professional on at
    Re: Lookup returns blank but Isblank returns false

    Hi @Mmaayy999 ,

    Not precisely, although you may have an empty string "" in the field, which is not blank. I always use Len() as it covers both empty and blank. I also tend to use the lookup structure I posted (I know the views on data retrieval), but it always works.

  • Mmaayy999 Profile Picture
    19 on at
    Re: Lookup returns blank but Isblank returns false

    Wow it returns true, thank you I think I can use it! do you know what's the problem on using Isblank()?

  • Verified answer
    WarrenBelz Profile Picture
    146,702 Most Valuable Professional on at
    Re: Lookup returns blank but Isblank returns false

    Hi @Mmaayy999 ,

    What do you get when you use

    With(
     {
     _Data:
     LookUp(
     'List',
     'Number' = Gallery1.Selected.Number
     ).Title
     },
     Len(_Data) = 0
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard