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 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:
  • Verified answer
    WarrenBelz Profile Picture
    156,956 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard