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 / Help with delegation i...
Power Apps
Unanswered

Help with delegation issue - "And"/ "Or"/ "Text" part of this formula might not work correctly on large data sets

(0) ShareShare
ReportReport
Posted on by 15

Hello! I'd really appreciate your expertise in figuring out this delegation issue around the And() function. I am trying to create this collection based on a set of 3 choice combo boxes (Measure1,2,3) that the user chooses and this additional Measure (5) that is already populated. Measure4 is just the name column. My data is coming from the dataverse and I have changed the row limit to 2000. The formula works well and we should not have more than 2000 entries but I am hoping to fix the delegation issue in case we do end up having more entries. 

Thank you so much in advance! 

 

 

ClearCollect(
 colGalleryUpdates,
 ForAll(
 Filter(
 'Table A',
 And(
 Or(
 
 Measure1 in 'Measure 1 Cb_1'.SelectedItems
 ),
 (Or(
 
 Measure2 in 'Measure 2 Cb_1'.SelectedItems
 )),
 (Or(
 'Measure3'in'Measure 3 Cb_1'.SelectedItems,
 Text('Table B'.'Measure5') = "Always Left",
 Text('Table B'.'Measure5') = "Always Right"
 ))
 )
 ),
 {
 Measure1: ThisRecord.Measure1,
 'Measure3': ThisRecord.'Measure3',
 'Measure4': ThisRecord.'Measure4'
 }
 )
);

 

 

Screenshot 2024-02-28 at 11.39.54 AM.png
  • AllanDeCastro Profile Picture
    412 Most Valuable Professional on at

    Hello,

    You can break down your formula into smaller steps and try to delegate as much as possible. Here's a modified version of your formula with some potential adjustments (not tested): 


    ClearCollect(
     colGalleryUpdates,
     Filter(
     'Table A',
     Or(
     Measure1 in 'Measure 1 Cb_1'.SelectedItems,
     Measure2 in 'Measure 2 Cb_1'.SelectedItems,
     'Measure3' in 'Measure 3 Cb_1'.SelectedItems,
     'Measure5' = "Always Left",
     'Measure5' = "Always Right"
     )
     )
    );
    Filter(
     colGalleryUpdates,
     And(
     Or(
     Measure1 in 'Measure 1 Cb_1'.SelectedItems,
     Measure2 in 'Measure 2 Cb_1'.SelectedItems
     ),
     Or(
     'Measure3' in 'Measure 3 Cb_1'.SelectedItems,
     'Measure5' = "Always Left",
     'Measure5' = "Always Right"
     )
     )
    )

     

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard