Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Gallery not Select Line Automatically When Change Filter Status

(0) ShareShare
ReportReport
Posted on by 253
Hi Guys!

I have the follow issue below:

After I submit a Form (that get input from selected/linked gallery), my gallery return not selected.

My variable in "Onselect" button property: << it's ok
I have two filter buttons with UpdateContext. One is "UpdateContext({varStatus: "Pendente"})" and another one is "UpdateContext({varStatus: "Concluído"})". 

 

My formula in "Item" Gallery property: << it's ok

Filter('Processo de exportação', StatusGeralzao = varStatus)

 

My problem is: when I click on both buttons filters (varStatus = "Pendente") or (varStatus = "Conluído") , the gallery is filtered by "Status this status normally, but not select its line automatically. I have to click to select an specific line.

I use the "default" gallery property to see the last record (just to stay selected) like this: Last(Database) and the result selected the last line in my gallery when I click on the button  (varStatus = "Pendente"), but when I click on button  (varStatus = "Concluído"), the gallery doesn't select the last gallery line. 

 

Does Anyone could help with this issue, please? Any If formula or anything else on default gallery property?

Categories:
  • Verified answer
    yying Profile Picture
    69 on at
    Re: Gallery not Select Line Automatically When Change Filter Status

    Hi

    I'm not quite sure what you mean, but for the default gallery,

    If you don't manually select any of the gallery items, gallery selects the first item by default.

    I hope this helps.

  • WendeReisss Profile Picture
    253 on at
    Re: Gallery not Select Line Automatically When Change Filter Status

    Hi @Corissandageri 
    No. It can select any line in gallery, since it works when I click on both buttons (varStatus = "Pendente") or (varStatus = "Concluído").

  • R Bakker Profile Picture
    725 on at
    Re: Gallery not Select Line Automatically When Change Filter Status

    Hi

    Do you want it to select the last submitted record?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1