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 / Basic gallery filtering
Power Apps
Answered

Basic gallery filtering

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

This seems like such a simple thing to do, but I seem to have it all wrong. I have a SharePoint list called Newsletter Articles. I have a vertical gallery (called LeftNav) that holds a list of all the articles (just the title and the author) that hangs out as navigation on the side of my Power App.
I have another gallery that I've sized to be huge (called DetailedView), and that gallery holds all the article details - you'll see the article title, author, text there, a video recording, etc. etc. I want to be able to select a newsletter article from the LeftNav gallery, and have the DetailedView gallery show the details for just that article. 

Detailed view throws an error with any of these Item specifications: 

Filter('Newsletter articles'.ID,LeftNav.Selected.ID)

Filter('Newsletter articles',LeftNav.Selected.ID)

Filter('Newsletter articles',LeftNav.Selected)

Bonus question - what should my Action be for my LeftNav items? I have a feeling I have that written wrong too...

Thank you in advance for any help!

Categories:
I have the same question (0)
  • Verified answer
    jblomberg Profile Picture
    86 on at

    The gallery LeftNav seems fine, but I think the other one shouldn't be a gallery. I may be mistaken, but it sounds like the data shown in DetailedView is all in one record, spread over multiple columns. Galleries work miracles when showing multiple records, but aren't ideal for showing one record only. An edit/display-form seems to be way to go.

     

    It's not that you can't do it the way you did it. You can use the LookUp() function for your DetailedView gallery's Items-property and make sure it only shows one record. It's just not the way galleries are designed.

     

    The LookUp function would be:

     

    LookUp('Newsletter articles', ID = LeftNav.Selected.ID)

     

     

    - Joeri Blomberg

  • sloughcow Profile Picture
    Microsoft Employee on at

    @jblomberg Thank you! You absolutely read it right that the DetailedView is data from a single record.

    I'm using a gallery because I can't seem to get the sort of layout I'd like to have with a display form: it seems like they insist on a vertical structure that lists the data from top to bottom, and I want to organize data from the columns all around the page. You probably guessed that I'm very new to Power Apps and hacking my way around. And your LookUp function worked - 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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard