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 / Creating a collection ...
Power Apps
Answered

Creating a collection to get the display name from a People column - odd results

(0) ShareShare
ReportReport
Posted on by

Hi,

 

After some words of wisdom as can't see why this isn't working.  I have a very simple SharePoint list with two columns "Employee" and "Days".  The "Employee" column is a People column and the "Days" column is a number.

 

pa-1.png

 

What I am trying to do is grab the display name from the People coloum and create a new column within the collection with this data. 

 

pa-3.png

 

However when I look at the collection it hasn't created the columns and looks like this

 

pa-2.png

 

I am not sure what's going wrong here, any ideas gratefully received.

 

Thanks

Rob

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    Hi @Rob_CTL ,

    You don't need the lat two references unless you want ShowColumns to restrict the collection like the below

    ClearCollect(colHoliday, 
     ShowColumns(
     AddColumns(
     Holidays, 
     "EmployeeName", 
     Employee.DisplayName
     ),
     "EmployeeName", 
     "Days",
     "Holidays"
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Rob_CTL Profile Picture
    on at

    Thanks @WarrenBelz

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard