Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

LookUp function not returning all field values. Monitor shows inexplicable oData $select statement.

Hi all,


I've got a rather complicated (and proprietary) canvas app I'm building for a client, which leverages Dataverse as its data source. To summarize the app, it's basically for tracking quarterly financial statistics, and we've bifurcated our data based on the "type" of financial data...everything is either a "Partnership" or it isn't.


Before I explain the issue, let me share the code in question.


Details Screen OnVisible function

          CYPeriodPTR: LookUp('Periods - Partnerships', ID = SelectedID)
          CYPeriodSTK: LookUp('Periods - Stocks', ID = SelectedID)


In both tables, ID is the Primary Name column, which uses an auto-generated number and SelectedID is a global variable that is set when the user selects an item from a gallery on a different screen, which navigates to my 'Details' screen triggering the above code to run.


In both cases, the query executes and returns the correct record. However, the second LookUp (to the Stocks table), doesn't return all of the values like the first does.


Inspecting the query via the Monitor, I can see that the query to Dataverse is including a $select statement and I don't understand why. The query for the first one does not include a select statement.


     "url": ""


How does PowerApps decide when and what "select" statement to apply?


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,442)