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 / How to Filter and Disp...
Power Apps
Suggested Answer

How to Filter and Display Specific Data from a Collection in Power Apps

(0) ShareShare
ReportReport
Posted on by 8

Hi everyone,

I’m currently working on a Power App where I want to perform the following tasks with a collection:

  1. Display filtered data from the collection within the app.
  2. Show either the first 4 records or fetch data from specific random columns within the collection.

I’ve created a collection successfully, but I’m unsure how to implement these specific requirements. Any guidance or formulas to achieve this would be greatly appreciated!

Categories:
I have the same question (0)
  • Suggested answer
    Datanerd Profile Picture
    103 on at
    Hello,

    If you already have built a collection, please see the step-by-step recommendation below

    Step 1: Display Filtered Data

    If you want to show only specific data from your collection (e.g., filtering by a column like "Status" = "Active"), you can use the Filter() function. Here’s an example:

    Filter(YourCollectionName, Status = "Active")

    Set this formula as the Items property of your gallery or table, and it will display only the filtered results.

    Step 2: Show the First 4 Records

    To display just the first 4 records in your collection, you can use the FirstN() function like this:

    FirstN(MyCollection, 4)

    Set this as the Items property, and you’re good to go!

    Step 3: Fetch Data from Specific Columns

    If you want to focus on specific columns (e.g., "Name" and "Email"), the ShowColumns() function will help. For example:
    ShowColumns(YourCollectionName, "Name", "Email")

    You can also combine this with other functions. For instance, to show the first 4 records but only from specific columns, use:
     

    FirstN(ShowColumns(YourCollectionName, "Name", "Email"), 4)

    These steps should cover what you need! Let me know if you have any questions or need further help.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard