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 / Dataverse Table Lookup...
Power Apps
Unanswered

Dataverse Table Lookup Field(s) available but not when using a collection

(1) ShareShare
ReportReport
Posted on by 31

Dear Makers

 

I have 2 Dataverse tables, the one being a lookup for the other one. Here is an example:

 

Table 1: OpenCastReports

Field 1: Name

Field 2: OpenCastMaterial (this is a lookup for the second table)

 

Table 2: OpenCastMaterial

Field 1: Name

Field 2: ValueLevel

Field 3: SequenceNo

 

The following function filters the Dateverse table directly and returns the correct results, i.e. it returns a few records:

 

Filter(
 OpenCastReports,
 Name = "Some name here",
 OpenCastMaterial.ValueLevel = 100
)

 

 

Problem: However, when I create a collection from the Dataverse table first, then I get no results returned: 

 

ClearCollect(colOpenCastReports, OpenCastReports);

Filter(
 colOpenCastReports,
 Name = "Some name here",
 OpenCastMaterial.ValueLevel = 100
)

 

 

Upon further Investigation I tried out a Sum() function on the Collection's OpenCastMaterial.ValueLevel field and see if a value come through. Strangely, the result is = "Blank". I guess this is the same behavior with the Filter() on the Collection above. 

 

Sum(
 colOpenCastReports,
 OpenCastMaterial.ValueLevel
)

 

 

However, when Summing the OpenCastMaterial.ValueLevel field directly from Dataverse table I get the correct result.

 

Sum(
 OpenCastReports,
 OpenCastMaterial.ValueLevel
)

 

 

I can't run a filter on the Dateverse table directly as I need the collection (colOpenCastReports) to eventually Patch() the records in the table later.

 

Any help will be greatly appreciated!

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,707 Most Valuable Professional on at

    Hi @SytzeVisser,

     

    I've seen similar issues with lookups on other tables too.

     

    Would copying both tables into local collections before performing joins / lookups work, as per the following code?:

    ClearCollect(colOpenCastReports, OpenCastReports);
    ClearCollect(colOpenCastMaterials, OpenCastMaterials);

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard