Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ITBeard
New Member

How to lookup a SharePoint People field with multiple selections

Hi,

 

I can't figure out how to create a new column with a lookup of a SharePoint people field with mutiple selections.

 

I use the following formula but it returns only the first value.

Name = LOOKUPVALUE('User Information List'[Title],'User Information List'[Id],'Final Documents'[Autor(s)Id])
 
There's a way to return all values with a semicolon delimiter?
 
Thank you!
1 ACCEPTED SOLUTION

Hi @ITBeard ,

Please consider adding a custom column to the PowerQuery Editor.

= Text.Combine(Table.SelectRows(#"User Information List",(x)=> List.Contains(Text.Split([#"Autor(s)Id"],";"),x[Id]))[Title],";")

vcgaomsft_0-1683684755583.png

Note that the data types of the id columns in the two tables need to be the same, otherwise they need to be converted to be consistent in the code.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @ITBeard ,

Please create a calculated column.

Name = 
CONCATENATEX (
    CALCULATETABLE (
        DISTINCT ( 'User Information List'[Title] ),
        FILTER (
            ALL ( 'User Information List' ),
            'User Information List'[Id] = 'Final Documents'[Autor(s)Id]
        )
    ),
    'User Information List'[Title],
    ","
)

vcgaomsft_0-1683521295305.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hi!


In your example, you have multiple names with the same ID in table "User Information List" but it is not exactly my problem.

 

In my case, I have multiple IDs delimited by semicolon in Autor(s)Id (Final Documents) table and I try to create a new column that will convert those IDs in Names delimited by semicolon with Id of "User Information List". There's only one name per Id in "User Information List" Table 

I hope you can find a solution for me 🙂

Thank you!!

Hi @ITBeard ,

Please consider adding a custom column to the PowerQuery Editor.

= Text.Combine(Table.SelectRows(#"User Information List",(x)=> List.Contains(Text.Split([#"Autor(s)Id"],";"),x[Id]))[Title],";")

vcgaomsft_0-1683684755583.png

Note that the data types of the id columns in the two tables need to be the same, otherwise they need to be converted to be consistent in the code.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors