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
I have the same question (0)
  • 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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,009

#2
11manish Profile Picture

11manish 672

#3
Valantis Profile Picture

Valantis 628

Last 30 days Overall leaderboard