Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Add Filter on Gallery1 and only show the filtered items on Gallery2 (Same List)

(0) ShareShare
ReportReport
Posted on by 29
I found some video on showing only the filtered or search result item on the same screen, but not different screen. I tried to apply the concept but fail, either the OnSelect or Arrow is not working.
 
I have MyList like this. Currently I have (Area, Country, Item) listed on BrowseScreen (Gallery2), and everything else on DetailScreen with
     Gallery2 OnSelect:  Navigate(DetailScreen, ScreenTransition.None)
     Arrow2 OnSelect: Select (Parent)
 
 
I want to build a HomeScreen (Gallery1), with
    Items: Distinct (MyList, Area.Value)
    OnSelect: Navigate(BrowseScreen,ScreenTransition.None,{SelectedArea : ThisItem.Value})
 
 
 
And Gallery2 will only show items within that Area (if I click LA)
 
 
It's not letting me select anything (so when clicking, the mouse does not turn into a hand, and nothing happen)
 
I can't use collection because there's a third screen (detail screen) need to be direct to after. 
 
I think the issue is more with Gallery1 (or Home Screen) because I can't click at all, not that Gallery2 is showing incorrect information. 
Not sure if I have a wrong OnSelect function, or I need put in something in Arrow1. Please help.
 
 
 
Thanks!
  • Kalel_Lucas Profile Picture
    165 on at
    Add Filter on Gallery1 and only show the filtered items on Gallery2 (Same List)
    Hello mumuyu202,
     
    Could you check to see if there isn't another control on top of that Arrow that is simply transparent?
    Alternatively, you could check the Arrow's DisplayMode property and see if it is set to DisplayMode.Edit. If it isn't, please set it as such and check it if it works now.
     
    Kind regards,
    Kalel
  • mumuyu202 Profile Picture
    29 on at
    Add Filter on Gallery1 and only show the filtered items on Gallery2 (Same List)
    Hi @Kalel, I still can't click the arrow. With all the code, is there a magic to make the arrow 'click-able'?
    Thanks!
  • Kalel_Lucas Profile Picture
    165 on at
    Add Filter on Gallery1 and only show the filtered items on Gallery2 (Same List)
    Hello mumuyu202,
     
    If I understood correctly what you want, you can achieve a similar effect with the following idea:
    On your Gallery1's Arrow, you can put the following in the OnSelect property:
    Select(Parent);
    Navigate(BrowseScreen, ScreenTransition.Fade, {SelectedArea: ThisItem.Value})
     
    Afterwards, on your Gallery2's Items property, you can put the following code:
    Filter(MyData, Area = SelectedArea)
     
    This should show the correct data in your Gallery2.
     
    Hope it helps,
    Kalel
  • Michael E. Gernaey Profile Picture
    41,027 Super User 2025 Season 1 on at
    Add Filter on Gallery1 and only show the filtered items on Gallery2 (Same List)
    Hi,
     
    You talk about all these strings, but I see no pictures so I gave up

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard