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 condition "false" t...
Power Apps
Answered

If condition "false" to show blank gallery?

(0) ShareShare
ReportReport
Posted on by 361

I need to make sure that after this "IF", and this condition that I created, the gallery is "blank" or does not filter anything, I had the idea of doing it like this in the ITEMS property.

But I don't know what to write after the IF... Summary: if all condition is not satisfied, show gallery blank.

Source: Organization chart...

Joaoandrebs_0-1682690087526.png

 

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    You could always just filter of something you know it will never find. Not sure how good of a solution this is but if you did something like Filter(SpListName, Role = "23;j4;2i35j2;3'51j3902jr'23j") This will almost certainly never show results so would just show a blank gallery.

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Joaoandrebs ,
    Try using below formula in Items property of Gallery - 
    Filter(DataSourceName, IsBlank(ComboBox1.Selected.Value) || 'Group Leader' = ComboBox1.Selected.Value)
    The above formula will display all items if no value is selected in ComboBox1

  • Joaoandrebs Profile Picture
    361 on at

    @mmollet you are the man

  • mmollet Profile Picture
    3,187 on at

    @Joaoandrebs no you 🤗

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 516

#2
WarrenBelz Profile Picture

WarrenBelz 428 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 292

Last 30 days Overall leaderboard