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 / Filtering using button...
Power Apps
Answered

Filtering using button only retrieves that column

(0) ShareShare
ReportReport
Posted on by 129

I'm trying to filter a Dataverse table and store the information in a variable...it's only getting back that column and not the whole row

 

The following works in a Gallery:

 

Filter('Crew Recourses', 'Call Sign' = X1)

 

When i move the above to store in a collection it only retrieves the call sign information and not the other columns

ClearCollect(colDetails, Filter('Crew Recourses', 'Call Sign' = X1))

 

Any ideas?

 

Categories:
I have the same question (0)
  • BideyYusuf Profile Picture
    387 on at

    Hello @Henryed07 , ensure that you initiate the collection functions at onvisible of the Screen or On start, so that by the time you open the screen, the system has already filter the Datasource, and pass the records to the collection.

    Put this ClearCollect(colDetails, Filter('Crew Recourses', 'Call Sign' = X1)) in the Onvisible property of the screen.

     

    then On the Item property of the Gallery, put this colDetails.

    it should give you the whole row filtered.

     

    I hope this helps.

    mark it as solution if it does. cheers.

  • Henryed07 Profile Picture
    129 on at

    Hi. 

     

    I think you have miss read the issue. 

     

    It works fine in a gallery, i want the results in a collection not in a gallery. I want this to be stored in a collection, for some reason it's not working.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Henryed07,

    Have you resolved your problem?

    Do you want to show all the fields in a record based on the Filter() function?

     

    Actually, the Filter() fucntion could get you a complete record including all the fiels, however you could use the ShowColumns() function to show any field from the data source.

    ClearCollect(colDetails, ShowColumns(Filter('Crew Recourses', 'Call Sign' = X1),"Field1","Field2","Field3"))

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard