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 properly search...
Power Apps
Unanswered

How to properly search in "Created by"

(0) ShareShare
ReportReport
Posted on by 48

HI,

 

can someone help me figure out how to properly search in "created by" (data source = SharePoint list) column of data table? 

 

Currently I'm using "AddColumns" and it works great, I can search according to user name .... but just because of that I have problems with my next screens (e.g. Detail screen - showing "Data source" error).

 

Simply, datatable.selected doesn't show any records details. Everything's back to normal when I remove "AddColumns".

I assume it's because I added new column with "Addcolumns" function which doesn't exist in my origin data source.

 

My Home Screen data table "Items" formula:

 

SortByColumns(
Search(
AddColumns(MySharePointlist, "CreatedByUser", 'Created By'.DisplayName),
SearchInput.Text,
"CreatedByUser",
"Title",

...other text columns to search...
), "Created", Descending)

 

 

Data source error on my detail screen:

Error.JPG

 

So...

1, is there any other way how to search in "Created by" column, without using AddColumns

or

2, how to adapt my next screens (e.g. detail screen) data source while using AddColumns in my home screen? 

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Lubeno78 
    You can use a ComboBox control with this code in the Items property to look for the user.

     

    Choices(your_datasource_name.'Created by')

     

     

    Then use this code in the Items property of your data table

     

    Filter(your_datasource_name, 'Created by' = ComboBox1.Selected)

     

     

    Watch this video if you require a full set of instructions:

    https://www.youtube.com/watch?v=tPxE_-DcWkg

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • CU29100747-0 Profile Picture
    48 on at

    @mdevaney  thank you for reply.

     

    Combo box with "Choices(MySharePpointList.'Created By') shows only some strange ID's, see below. 

    .DisplayName is not possible to use.

    How to show user's name?

     

    users.JPG

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Lubeno78 

    You'll want to change both the DisplayFields and SearchFields property of the Combobox to this code

    ["DisplayName"]

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • CU29100747-0 Profile Picture
    48 on at

    @mdevaney  sorry, but that doesn't work. 

    ...["DisplayName"]

    showing me "member of..." text, I don't know why.

    I tried all other options (JobTitle, Email, Dept...), same strange results. Do you know why? 

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
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard