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 Apps / Do If statements with ...
Power Apps
Answered

Do If statements with Filters always need that second Filter to show information?

(0) ShareShare
ReportReport
Posted on by 577 Super User 2024 Season 1

Hard to a describe so here is the Code:

 

If(
 IsBlank(First(Filter(Source, ID = ThisItem.ID)).Value),
 "",
 First(Filter(Source, ID = ThisItem.ID)).Value
)

 

Do I really need to use the Filter twice or am I missing something?

 

Thank you

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

    @KRider 

     

    Coalesce(LookUp(Source, ID = ThisItem.ID).Value)
    //This function will return a blank if the result of the LookUp is blank) otherwise the value of the LookUp will be returned.

     

  • RonLar Profile Picture
    60 on at

    Also, this may work even simpler: 

    Coalesce(First(Filter(Source, ID = ThisItem.ID)).Value, "")
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @RonLar 

    Mine is even more concise.

    igor.jpg

     

  • KRider Profile Picture
    577 Super User 2024 Season 1 on at

    LookUp takes a bit more resource than Filter no?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard