Skip to main content
Community site session details

Community site session details

Session Id : 5ebPIlVRhFChJz/2LZABCP
Power Apps - Microsoft Dataverse
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 28 Feb 2024 16:54:09 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'
 }
 )
);

 

 

  • AllanDeCastro Profile Picture
    412 Most Valuable Professional on 21 Mar 2024 at 14:00:38
    Re: Help with delegation issue - "And"/ "Or"/ "Text" part of this formula might not work correctly on large data sets

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Featured topics

Loading complete