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 / Using set instead of l...
Power Apps
Answered

Using set instead of lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I've recently changed all my lists to use lookups so the ID's are stored in one table and if names of items change it will be reflected anywhere the item is used. Took a bit to work it out but It's mostly done now. The issue is, that now it has completely destroyed the usability because the page takes forever to load and refresh when data is added. 

 

So on doing some reading I think my best option is to use Set() on page load to lookup the items but I need a bit of help. I'll try my best to explain with a screenshot.

 

All the modules and items on the left come from their lookup tables. On the right, the data is being pulled from a mapping table which only has ID's, and is based on the package dropdown. When I change dropdown it takes forever, or crashes. When I try to app more items from the left to the mapping table (and therefore what's listed on the right), it takes forever and crashes. So I tried this code on page visible:

 

Set(vModule, LookUp(Modules, crb20_module_id = ListBox1.Selected.crb20_module_id, crb20_module));

 

Then added the module name as ThisItem.vModule

 

It just says name isn't valid, this identifier isn't recognised.

 

Can someone help please?

 

Modules.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I solved it concurrent 🙂

     

    On page load:

    Concurrent(
    ClearCollect(vModule, Modules),
    ClearCollect(vItem, Items),
    ClearCollect(vMapping, Mapping)
    )

    Then used the new lists which are cached when the page loads.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard