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 / How to extract value o...
Power Apps
Answered

How to extract value of Sharepoint list from lookup field after ClearCollect

(1) ShareShare
ReportReport
Posted on by 8
Hi, I have 2 tables: testList and testLocation. In testList there is lookUp field that refers to testLocation.
I want to Collect some data from testList, but all fields that are a lookUp fields are returned as subtables.
I tried to Ungroup these, but it changes nothing. Perhaps because it is not groupped by groupBy.
How can I extract those values, so these are all accessible to me?
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,541 Most Valuable Professional on at
    "Secondary" fields in Lookup columns are not compatible with Power Apps in many aspects and should not be used. You are better using AddColumns with Lookups to get those field values.
    ClearCollect(
       colTestList,
       Ungroup(
          ShowColumns(
             AddColumns(
                testList,
                GroupField,
                With(
                   {
                      _Fields: LookUp(
                         YourOtherList,
                         YourLookedUpField = locc.Value
                      )
                   },
                   {
                      Place: _Fields.place,
                      Side: _Fields.side,
                      Title: _Fields.Title
                   }
                )
             ),
             Title,
             type,
             osVersion
             GroupField
          ),
          GroupField
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard