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 / "Empty" gallery when o...
Power Apps
Answered

"Empty" gallery when opening an app any fix ?

(0) ShareShare
ReportReport
Posted on by 169

When I open my app the gallery is empty I have to select a value in the combox to be able to see the gallery 

SortByColumns(
 Search(
 Filter(Opportunités;'Créé par'.Email=User().Email &&
 (IsEmpty(ComboBoxEtatFiltre.SelectedItems)|| 
 (Concat(ComboBoxEtatFiltre.SelectedItems;Value&",") in Concat(Etat;Value&","))
 )
 );
 
 SearchBox.Text;
 "Nomclient";
 "Title");
 "Created"; If(SortDescending1; Descending; Ascending))

here my code in the gallery is this baceause of this or it's a problem of power apps and they're any fix ?

emptyGallery.png
Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dive1 

    Please consider changing your Formula to the following:

    SortByColumns(
     Search(
     Filter(Opportunités;'Créé par'.Email=User().Email &&
     (IsBlank(ComboBoxEtatFiltre.SelectedItem.Value) || 
     (Concat(ComboBoxEtatFiltre.SelectedItems;Value&",") in Concat(Etat;Value&","))
     )
     );
     
     SearchBox.Text;
     "Nomclient";
     "Title");
     "Created"; If(SortDescending1; Descending; Ascending))

    Your problem is with the IsEmpty of the filter.  The IsEmpty on the SelectedItems will never be true.  Instead simply use IsBlank on the SelectedItem.

     

    I hope this is helpful for you.

  • Dive1 Profile Picture
    169 on at

    Thank you it worked that was it

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard