Forum Discussion

Flip89's avatar
Flip89
New Member
5 years ago

PowerQuery transformation for Sharepoint List multiple People field

Dear all,

 

It is quite simple. I would like to extract data from sharepoint list "multiple selection people" field. I extracted data into "Title" and "Email" fields and got an error. Not sure how to get from here to simple string representation of array of titles/emails with specified delimiter.

 

 

Thanks in advance,

Filip

2 Replies

  • How to expand a SharePoint multi people-picker field in Power Query (in Excel or Power BI).
     
    This assumes you have a Power Query data connection via: Get Data -> Online Services -> SharePoint Online List that has a multi-people picker column in the List.

    1. In the Power Query Editor make sure your multi-people picker column is displayed, the value for every row will be "Table"
    2. Click on the "Add Column" Tab
    3. Click "Custom Column"
    4. Name the new column
    5. Under "Available columns", select the multi-people picker column and click "<< Insert"
    6. To expand the email attribute for each user, add [email] after the column name in the "Custom column formula" box, like this:
      1. [People Picker][email]
    7. Other available fields are:
      1. id, value, title, email, sip, picture, jobTitle, department
    8. Click Ok, the new column will now be displayed with "List" as the value for each record
    9. To expand the list, click on the button in the new column's header and select "Extract values..."
    10. Select a delimiter, e.g. "semicolon" and click "Ok"
    11. Now the people's names will appear in the new custom column.
    12. Click the "Home" tab and then "Close and load" to see the new column appear in the Excel worksheet or Power BI.