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 / Gallery default select...
Power Apps
Unanswered

Gallery default selected based on another gallery selected

(0) ShareShare
ReportReport
Posted on by 49

I have two galleries on two separate pages.  Both galleries are the exact same, tying to the same data source and filters. When I select an item on the first gallery it navigates to the second page. I want the gallery on the second page to default to the selection from the first gallery. 

 

 

Categories:
I have the same question (0)
  • Silvester. Akakpo Profile Picture
    783 on at

    Hello @haybob ,
    Try setting up a variable on the OnSelect property of the first gallery. 

    Set(VarItem, ThisItem)

    On the second gallery, set the DefaultSelectedItem to the "VarItem".
    Please accept as a solution if it works for you. Dont forget to give it a "Like" as well


  • haybob Profile Picture
    49 on at

    I only see Default as an option and setting it to the variable doesn't work.

  • Silvester. Akakpo Profile Picture
    783 on at

    Kindly try it on the "Default"

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

    Hi 

    If you want to set gallery2’s default property based on gallery1 selection then you can use below formula on Default property of gallery 2

    LookUp(ListName, ID = Gallery1.Selected.ID)

  • haybob Profile Picture
    49 on at

    I get an error when attempting the formula. Invalid formula. Expected a value compatible with 'items'.

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

    Can you please share the screenshot with error and the property where you are inserting this formula

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard