web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter and Search retu...
Power Apps
Answered

Filter and Search returning a full table with only a value in the searched column

(0) ShareShare
ReportReport
Posted on by 193

I am attempting to use the Search function to find all rows containing a value in a single column of a table with many columns. Normally, I expect that if there are 5 rows containing the searched string in "Column 1", a table would be returned with 5 rows with all columns from the original table.

 

The result I am getting is five rows with all columns from the original table, however, only the values for "Column 1" are coming through. The values for the other columns are missing, and they absolutely do have values. I am not using any additional functions that would limit to only that column.

 

The source table is in Dataverse (for Teams) but I am not sure if that is the cause, or how to resolve it if that is the case.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @cah2035 

    Please post your Filter/Search function.

  • CAH2035 Profile Picture
    193 on at

    Search Function and Result:

    ClearCollect(
     testcol,
     Search(
     ResourceRequestsCTPs,
     "APCP585-REQ23631",
     "cr739_trprequests_ctprequestid"
     )
    )

    collection2.png

     

    Simply grabbing the first row (same record):

    ClearCollect(
     testcol,
     First(
     ResourceRequestsCTPs
     )
    )

    collectionFirst.png

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @cah2035 ,

     

    When using Dataverse table as the data source to collect a collection, you will only be able to get values in the searching column, so as in SQL server. This can reduce the amount of data returned to the app to improve the performance of the app. If you would like to collect all columns data into the collection, you can use ShowColumns function to list all the column names:

    ClearCollect(
     testcol,
     ShowColumns(
     Search(
     ResourceRequestsCTPs,
     "APCP585-REQ23631",
     "cr739_trprequests_ctprequestid"
     ),
     "cr739_trprequests_ctprequestid",
     "other column1",
     "other column2",
     ...
     )
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard