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 / Filter Gallery by ID t...
Power Apps
Answered

Filter Gallery by ID to only show current item

(0) ShareShare
ReportReport
Posted on by 762

Hello Community,

I need your help please,

I have a Gallery where I want to only show the current Item (ID), is there a way to achieve this so that I don't have to see all items?

 

Any guidance would be appreciated,

Thank you

Claire

Categories:
  • lenro Profile Picture
    194 on at

    Hi @ClaireAllen ,

     

    In the gallery you should write a formula

    Filter(CollectiionName,Value="YourID")

  • ClaireAllen Profile Picture
    762 on at

    Hi @lenro ,

    I can't seem to get this to work

    Filter(DataSource, Value = Your ID)

     

    I don't have a collection name, I'm using my Datasource Name i.e. my SharePoint list Name and what is Your ID? is it just ID number, or ThisItem.ID??

    Sorry this is new to me so still learning the formula's within Power Apps.

    Thank you for your assistance,

    Kind regards

    Claire

     

  • lenro Profile Picture
    194 on at

    Hi @ClaireAllen ,

    Then I need the whole story to understand.

     

    You have a SharePoint list, where you have a column with ID? And you want to show only this ID in gallery right?

     

    But is your SharePoint consist only on one ID? Or you know that it will always be the same ID, let's say 123456?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ClaireAllen 

    Following @lenro you can try:

     

    Filter(DataSource, Value = YourID)

     

    - DataSource= the name of your data set or sharepoint list

    - Value = the name of the field you whant to filter in this case "ID"

    - YourID = The ID you want to show

     

  • ClaireAllen Profile Picture
    762 on at

    Thank you @Anonymous 

    To help others, the formula I entered as you suggested - Filter(COI, ID = Gallery1.Selected.ID)

    I then added a Label to Show the Current ID Reference, to make sure that I was seeing the current ID - "Form ID: " & ThisItem.ID

     

    Thank you @lenro for the guidance,

    Regards

    Claire

  • Sthembiso Profile Picture
    2 on at

    Filter(Data Source, ID=SharePointIntegration.SelectedListItemID)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard