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 / after applying a filte...
Power Apps
Answered

after applying a filter to a gallery, select the first item to be displayed in the form

(1) ShareShare
ReportReport
Posted on by 88

Hello guys,

 

So basically, what i am trying to do is after I filter my gallery (galIR) using the fields on the right which are filtering the gallery in the items property of it. In my formIR, i want the first item to be selected after the filter is applied so the no item to display pop up is visible. If anyone could assist me with this i would really appreciate it and thanks.

 

nunuNMS_0-1720624795940.png

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @nunuNMS Set your Default property of gallery to : First(Self.AllItems).

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • nunuNMS Profile Picture
    88 on at

    Hello there,

     

    the issue with this yes it selects the first item, however I can’t change the selected item then, it picks the first one and it stays picked I can’t choose another record in the gallery if that makes sense. I want the first one to be set while still awhile the user to choose another record. Thank you for your assistance.

  • Verified answer
    ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    @nunuNMS Try this on Default property of gallery 

    If(IsBlank(gblvar_SelectedRecord), First(Self.AllItems), gblvar_SelectedRecord)

     

    And then have this on OnSelect of gallery.

    Set(gblvar_SelectedRecord, ThisItem)

     Make sure that the OnSelect of all child control of this gallery should be Select(Parent)

     

    Onvisible of screen where you have these control have below code:

    Set(gblvar_SelectedRecord, Blank())

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • nunuNMS Profile Picture
    88 on at

    Thank you so much, it works now

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard