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 / If LookUp collection e...
Power Apps
Answered

If LookUp collection exist then, else

(0) ShareShare
ReportReport
Posted on by 6

Hi, this is annoying me for a while now.  Believes that this my formula can be simpler. But can not figure it out.

 

What I want:

If the item exist in collections, then show name, if not show room number.

 

My formula, that works. 

If(CountRows(Filter(List,OfficeLocation = "C109")) > 0,LookUp(List,OfficeLocation = "C109",Name),"C109")

 

Thanks, for any help.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Theuserprofil 

    Please consider changing your Formula to the following:

    Coalesce(LookUp(List, OfficeLocation = "C109", Name), "C109")

     

    I hope this is helpful for you.

  • Theuserprofil Profile Picture
    6 on at

    Thank you very much, I thought it was a better solution. 🙂

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Theuserprofil 

    The Coalesce function is a very helpful one!!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard