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 / How to display all dat...
Power Apps
Answered

How to display all data in gallrey before applying filter from dropdown?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, 

I have a gallery to display list of pending orders. Initially, users need to choose their respective SMT Line from the dropdown to view their order. However, I would like this gallery to show all pending orders first before users apply filter via the dropdown. 

AmiraRoslan_0-1698716373091.png

 

Here's some code I have configured:

  • Gallery Items property: 

 

 

SortByColumns(
 Filter(
 Orders,
 Progress <> "Completed" && 'SMT Line' = Dropdown1_4.Selected.Value 
 ),
 "Date_x002f_Time",
 SortOrder.Descending
)​

 

 

  • Dropdown Items property: 

 

 

Distinct(Orders, 'SMT Line')​

 

 

How do I add another filter to let the gallery show all pending orders first? 

 

Categories:
  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @Anonymous,

     

    Can you try this:

    SortByColumns(
     Filter(
     Orders,
     Progress <> "Completed" && 
     ('SMT Line' = Dropdown1_4.Selected.Value || IsBlank(Dropdown1_4.Selected.Value))
     ),
     "Date_x002f_Time",
     SortOrder.Descending
    )​

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @AARON_C 

    This works! Thank 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

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard