cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhanney2323
Resolver I
Resolver I

Delegation Workaround Issue - SQL large Datasource table

Hello,

 

I have an issue where the delegation workaround I'm using is running up our SQL server's cpu usage and it is causing our application's performance to basically come to a halt. It started because I had to come up with a delegation workaround b/c the datatable I was filtering on used SQL as a datasource and there are functions in the filter that are causing limit issues. So, I found the workaround, here, made some improvements using the concurrent function and it was working fine, until that datasource table grew in size recently (went from 40,000 rows to 80,000). Now it takes forever to collect all the records from the table and it is queuing up each query in SQL, suspending each call back to the server until it has collected everything which can take upwards of four minutes. This is a major issue as it causes slowness in bringing back data to our erp system and other applications that make calls to our SQL server. Is there any other workaround or method that could possibly speed up the calls? 


This is the code causing the issue -

// Get highest value for row_number column to know exactly how many rows there are then divide by 2000 (the current max Power App can grab from the server in one batch)
Set(
    _numberOfBatches,
        Max('[dbo].[970_item_format_item_mast]', RowNumber) / 2000
);

Concurrent(
    If(_numberOfBatches > 0,
    ClearCollect(_masterCollectionAllPre0,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 0)
    )
    ),
    If(_numberOfBatches > 1,
    ClearCollect(_masterCollectionAllPre1,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 2000)
    )
    ),
    If(_numberOfBatches > 2,
    ClearCollect(_masterCollectionAllPre2,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 4000)
    )
    ),
    If(_numberOfBatches > 3,
    ClearCollect(_masterCollectionAllPre3,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 6000)
    )
    ),
    If(_numberOfBatches > 4,
    ClearCollect(_masterCollectionAllPre4,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 8000)
    )
    ),
    If(_numberOfBatches > 5,
    ClearCollect(_masterCollectionAllPre5,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 10000)
    )
    ),
    If(_numberOfBatches > 6,
    ClearCollect(_masterCollectionAllPre6,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 12000)
    )
    ),
    If(_numberOfBatches > 7,
    ClearCollect(_masterCollectionAllPre7,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 14000)
    )
    ),
    If(_numberOfBatches > 8,
    ClearCollect(_masterCollectionAllPre8,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 16000)
    )
    ),
    If(_numberOfBatches > 9,
    ClearCollect(_masterCollectionAllPre9,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 18000)
    )
    ),
    If(_numberOfBatches > 10,
    ClearCollect(_masterCollectionAllPre10,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 20000)
    )
    ),
    If(_numberOfBatches > 11,
    ClearCollect(_masterCollectionAllPre11,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 22000)
    )
    ),
    If(_numberOfBatches > 12,
    ClearCollect(_masterCollectionAllPre12,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 24000)
    )
    ),
    If(_numberOfBatches > 13,
    ClearCollect(_masterCollectionAllPre13,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 26000)
    )
    ),
    If(_numberOfBatches > 14,
    ClearCollect(_masterCollectionAllPre14,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 28000)
    )
    ),
    If(_numberOfBatches > 15,
    ClearCollect(_masterCollectionAllPre15,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 30000)
    )
    ),
    If(_numberOfBatches > 16,
    ClearCollect(_masterCollectionAllPre16,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 32000)
    )
    ),
    If(_numberOfBatches > 17,
    ClearCollect(_masterCollectionAllPre17,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 34000)
    )
    ),
    If(_numberOfBatches > 18,
    ClearCollect(_masterCollectionAllPre18,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 36000)
    )
    ),
    If(_numberOfBatches > 19,
    ClearCollect(_masterCollectionAllPre19,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 38000)
    )
    ),
    If(_numberOfBatches > 20,
    ClearCollect(_masterCollectionAllPre20,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 40000)
    )
    ),
    If(_numberOfBatches > 21,
    ClearCollect(_masterCollectionAllPre21,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 42000)
    )
    ),
    If(_numberOfBatches > 22,
    ClearCollect(_masterCollectionAllPre22,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 44000)
    )
    ),
    If(_numberOfBatches > 23,
    ClearCollect(_masterCollectionAllPre23,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 46000)
    )
    ),
    If(_numberOfBatches > 24,
    ClearCollect(_masterCollectionAllPre24,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 48000)
    )
    ),
    If(_numberOfBatches > 25,
    ClearCollect(_masterCollectionAllPre25,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 50000)
    )
    ),
    If(_numberOfBatches > 26,
    ClearCollect(_masterCollectionAllPre26,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 52000)
    )
    ),
    If(_numberOfBatches > 27,
    ClearCollect(_masterCollectionAllPre27,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 54000)
    )
    ),
    If(_numberOfBatches > 28,
    ClearCollect(_masterCollectionAllPre28,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 56000)
    )
    ),
    If(_numberOfBatches > 29,
    ClearCollect(_masterCollectionAllPre29,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 58000)
    )
    ),
    If(_numberOfBatches > 30,
    ClearCollect(_masterCollectionAllPre30,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 60000)
    )
    ),
    If(_numberOfBatches > 31,
    ClearCollect(_masterCollectionAllPre31,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 62000)
    )
    ),
    If(_numberOfBatches > 32,
    ClearCollect(_masterCollectionAllPre32,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 64000)
    )
    ),
    If(_numberOfBatches > 33,
    ClearCollect(_masterCollectionAllPre33,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 66000)
    )
    ),
    If(_numberOfBatches > 34,
    ClearCollect(_masterCollectionAllPre34,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 68000)
    )
    ),
    If(_numberOfBatches > 35,
    ClearCollect(_masterCollectionAllPre35,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 70000)
    )
    ),
    If(_numberOfBatches > 36,
    ClearCollect(_masterCollectionAllPre36,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 72000)
    )
    ),
    If(_numberOfBatches > 37,
    ClearCollect(_masterCollectionAllPre37,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 74000)
    )
    ),
    If(_numberOfBatches > 38,
    ClearCollect(_masterCollectionAllPre38,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 76000)
    )
    ),
    If(_numberOfBatches > 39,
    ClearCollect(_masterCollectionAllPre39,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 78000)
    )
    ),
    If(_numberOfBatches > 40,
    ClearCollect(_masterCollectionAllPre40,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 80000)
    )
    )
);
// End concurrent function


ClearCollect(_masterCollectionAll,
    _masterCollectionAllPre0,
    _masterCollectionAllPre1,
    _masterCollectionAllPre2,
    _masterCollectionAllPre3,
    _masterCollectionAllPre4,
    _masterCollectionAllPre5,
    _masterCollectionAllPre6,
    _masterCollectionAllPre7,
    _masterCollectionAllPre8,
    _masterCollectionAllPre9,
    _masterCollectionAllPre10,
    _masterCollectionAllPre11,
    _masterCollectionAllPre12,
    _masterCollectionAllPre13,
    _masterCollectionAllPre14,
    _masterCollectionAllPre15,
    _masterCollectionAllPre16,
    _masterCollectionAllPre17,
    _masterCollectionAllPre18,
    _masterCollectionAllPre19,
    _masterCollectionAllPre20,
    _masterCollectionAllPre21,
    _masterCollectionAllPre22,
    _masterCollectionAllPre23,
    _masterCollectionAllPre24,
    _masterCollectionAllPre25,
    _masterCollectionAllPre26,
    _masterCollectionAllPre27,
    _masterCollectionAllPre28,
    _masterCollectionAllPre29,
    _masterCollectionAllPre30,
    _masterCollectionAllPre31,
    _masterCollectionAllPre32,
    _masterCollectionAllPre33,
    _masterCollectionAllPre34,
    _masterCollectionAllPre35,
    _masterCollectionAllPre36,
    _masterCollectionAllPre37,
    _masterCollectionAllPre38,
    _masterCollectionAllPre39,
    _masterCollectionAllPre40
    );



8 REPLIES 8
Drrickryp
Super User
Super User

@bhanney2323 

Are you sure you need all these collections? Could you explain why because SQL has many delegatable functions in PowerApps.  Also, You can create views in sql that prefilter your tables.  Take a look at this discussion, I think it may be pertinent. https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-avoid-a-Kluge/m-p/826445#M262974 

bhanney2323
Resolver I
Resolver I

Yes, we do need all of the collections, each one is pulling the 2000 record limit and then filtering to the next 2000 until it reaches the table size which is 78,084 records. The reason we did this was to A): get around the delegation issues we were facing when we used sql directly as a datasource and B); to speed it up because once collected everything is stored in the browser and it no longer has to call out to sql every time it is filtering on the _masterCollectionAll.

 

The data table where we were first having delegation issues is shown below with sql as the datasource. The specification combobox has a delegation warning and I believe the filter does too. We can't use views to filter down the table either b/c the filters are based off a selection gallery based in the app itself. 

SortByColumns(
    Search(
        Filter('[dbo].[970_item_format_item_mast]',
        (material_family = 'Compound Selection_1'.Selected.Result && parent_category = Part_Select_Gallery.Selected.Parent_x0020_Category_x0020_Code && sub_category = Part_Select_Gallery.Selected.Subcategory_x0020_Code),
        (IsBlank(outerdd_3.Selected.Result) || outer_diameter = outerdd_3.Selected.Result),
        (IsBlank(innerdd_3.Selected.Result) || inner_diameter = innerdd_3.Selected.Result),
        (IsBlank(cross_sectiondd_3.Selected.Result) || cross_section = cross_sectiondd_3.Selected.Result),
        (IsBlank(mat_compounddd_3.Selected.Result) || material_compound = mat_compounddd_3.Selected.Result),
        (IsBlank(durometer_dd_1.Selected.Result) || durometer = durometer_dd_1.Selected.Result),
        (IsBlank(Material_manf_dd.Selected.Result) || material_manufacturer = Material_manf_dd.Selected.Result),
        (IsBlank(color_dd_1.Selected.Result) || color = color_dd_1.Selected.Result),
        (IsBlank(Specification_Combobox_3.Selected.Result) || specifications in Specification_Combobox_3.SelectedItems.Result)
        )
    ,'Part Number/Description Searchbox_3'.Text,"size","item_id","item_desc","supplier_part_no"),

// Dynamic sorting and sort order
First(_sortingTable).Value, If(First(_sortingTable).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 2)).Value, If(Last(FirstN(_sortingTable, 2)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 3)).Value, If(Last(FirstN(_sortingTable, 3)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 4)).Value, If(Last(FirstN(_sortingTable, 4)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 5)).Value, If(Last(FirstN(_sortingTable, 5)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 6)).Value, If(Last(FirstN(_sortingTable, 6)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 7)).Value, If(Last(FirstN(_sortingTable, 7)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 8)).Value, If(Last(FirstN(_sortingTable, 8)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 9)).Value, If(Last(FirstN(_sortingTable, 9)).SortOrder = true, Ascending, Descending)
)

 

Drrickryp
Super User
Super User


@bhanney2323 

It seems like you have developed an entire system to work around the limits on your combobox.  Although I haven't tried it, could you create a collection just for the items in your combobox and then use the Search() that you had used initially on the entire large table? 

I found a video that may be pertinent to you about how to get around the delegation issue with comboboxes.  Rezi Dorani's video may help here. PowerApps Delegation & Gallery Filtering using multi select Choice and Lookup Columns (Part 4) . It will probably work better with a gallery than a datatable but a gallery can be set up to look identical to a datatable and is much more flexible. 

So I changed it around so that the combobox, you can only choose 1 item and now it is delegable; however, the dynamic sorting we put in place is calling for delegation issues. We implemented this collection workaround because of the combobox and the sorting on the table. Please see the revised code here: 

 

SortByColumns(
Search(
Filter('[dbo].[970_item_format_item_mast]',
(material_family = 'Compound Selection_1'.Selected.Result && parent_category = Part_Select_Gallery.Selected.Parent_x0020_Category_x0020_Code && sub_category = Part_Select_Gallery.Selected.Subcategory_x0020_Code),
(IsBlank(outerdd_3.Selected.Result) || outer_diameter = outerdd_3.Selected.Result),
(IsBlank(innerdd_3.Selected.Result) || inner_diameter = innerdd_3.Selected.Result),
(IsBlank(cross_sectiondd_3.Selected.Result) || cross_section = cross_sectiondd_3.Selected.Result),
(IsBlank(mat_compounddd_3.Selected.Result) || material_compound = mat_compounddd_3.Selected.Result),
(IsBlank(durometer_dd_1.Selected.Result) || durometer = durometer_dd_1.Selected.Result),
(IsBlank(Material_manf_dd.Selected.Result) || material_manufacturer = Material_manf_dd.Selected.Result),
(IsBlank(color_dd_1.Selected.Result) || color = color_dd_1.Selected.Result),
(IsBlank(Specification_Combobox_3.Selected.Result) || Specification_Combobox_3.Selected.Result in specifications)
)
,'Part Number/Description Searchbox_3'.Text,"size","item_id","item_desc","supplier_part_no"),

// Dynamic sorting and sort order
First(_sortingTable).Value, If(First(_sortingTable).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 2)).Value, If(Last(FirstN(_sortingTable, 2)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 3)).Value, If(Last(FirstN(_sortingTable, 3)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 4)).Value, If(Last(FirstN(_sortingTable, 4)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 5)).Value, If(Last(FirstN(_sortingTable, 5)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 6)).Value, If(Last(FirstN(_sortingTable, 6)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 7)).Value, If(Last(FirstN(_sortingTable, 7)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 8)).Value, If(Last(FirstN(_sortingTable, 8)).SortOrder = true, Ascending, Descending),
Last(FirstN(_sortingTable, 9)).Value, If(Last(FirstN(_sortingTable, 9)).SortOrder = true, Ascending, Descending)
)
Drrickryp
Super User
Super User

Hi @bhanney2323 

I have never seen anything like your dynamic sort.  Perhaps @RandyHayes can assist you here.

So here is the code for creating our sorting table, this is on the onvisible property of the screen: 

 

// Create sorting table
ClearCollect(_sortingTable, Table({Value:"item_desc", SortOrder: true},{Value: "size", SortOrder: true}, {Value: "outer_diameter", SortOrder: true}, {Value: "inner_diameter", SortOrder: true}, {Value: "cross_section", SortOrder: true}, {Value: "material_compound", SortOrder: true}, {Value: "color", SortOrder: true}, {Value: "durometer", SortOrder: true},{Value: "material_manufacturer", SortOrder: true}));

 

And so there are multiple things you can sort off of and people click a sorting icon to then sort by that spec/measurement. Here is the onselect property of one of the sorting icons.

 

/ This simulates array push/pop behavior. Remove and add back to first row in table
RemoveIf(_sortingTable, Value = "inner_diameter");
ClearCollect(_sortingTablePre, {Value: "inner_diameter", SortOrder: true}, _sortingTable);
ClearCollect(_sortingTable, _sortingTablePre)

It basically creates a table and every time one of the spec/measurement sorting icons is pressed it puts that spec/measurement as the first value in the sorting table 

Drrickryp
Super User
Super User

@bhanney2323 

First(), FirstN(), Last() and LastN() are not delegatable in Powerapps.  However, First(Sort( works because Sort delegates and first only finds the top record. 

bhanney2323
Resolver I
Resolver I

Thank you for the continued effort on this issue, I looked it over more and there are increasing reasons as to why we made the switch to put the original sql table into a master collection. (We also use distinct on most of the dropdown filters, which is not delegable). I can work to completely redo the entirety of the app and working to find other workarounds; however, after speaking with our powerapps consultant, he claims that the code pulling in the rows into the master collection is syntactically correct and that he's seen the same concept work on larger datasets than ours. If anyone could let me know if this delegation workaround has a row limit for the data its pulling in? The table being pulled is 80,000 records, it's a lot but should this function be taking 4+ minutes to pull in? If anyone can test something similar on their end with a large dataset, lmk. 

 

To Clarify I am talking about this code: 

// Get highest value for row_number column to know exactly how many rows there are then divide by 2000 (the current max Power App can grab from the server in one batch)
Set(
    _numberOfBatches,
        Max('[dbo].[970_item_format_item_mast]', RowNumber) / 2000
);

Concurrent(
    If(_numberOfBatches > 0,
    ClearCollect(_masterCollectionAllPre0,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 0)
    )
    ),
    If(_numberOfBatches > 1,
    ClearCollect(_masterCollectionAllPre1,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 2000)
    )
    ),
    If(_numberOfBatches > 2,
    ClearCollect(_masterCollectionAllPre2,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 4000)
    )
    ),
    If(_numberOfBatches > 3,
    ClearCollect(_masterCollectionAllPre3,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 6000)
    )
    ),
    If(_numberOfBatches > 4,
    ClearCollect(_masterCollectionAllPre4,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 8000)
    )
    ),
    If(_numberOfBatches > 5,
    ClearCollect(_masterCollectionAllPre5,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 10000)
    )
    ),
    If(_numberOfBatches > 6,
    ClearCollect(_masterCollectionAllPre6,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 12000)
    )
    ),
    If(_numberOfBatches > 7,
    ClearCollect(_masterCollectionAllPre7,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 14000)
    )
    ),
    If(_numberOfBatches > 8,
    ClearCollect(_masterCollectionAllPre8,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 16000)
    )
    ),
    If(_numberOfBatches > 9,
    ClearCollect(_masterCollectionAllPre9,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 18000)
    )
    ),
    If(_numberOfBatches > 10,
    ClearCollect(_masterCollectionAllPre10,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 20000)
    )
    ),
    If(_numberOfBatches > 11,
    ClearCollect(_masterCollectionAllPre11,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 22000)
    )
    ),
    If(_numberOfBatches > 12,
    ClearCollect(_masterCollectionAllPre12,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 24000)
    )
    ),
    If(_numberOfBatches > 13,
    ClearCollect(_masterCollectionAllPre13,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 26000)
    )
    ),
    If(_numberOfBatches > 14,
    ClearCollect(_masterCollectionAllPre14,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 28000)
    )
    ),
    If(_numberOfBatches > 15,
    ClearCollect(_masterCollectionAllPre15,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 30000)
    )
    ),
    If(_numberOfBatches > 16,
    ClearCollect(_masterCollectionAllPre16,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 32000)
    )
    ),
    If(_numberOfBatches > 17,
    ClearCollect(_masterCollectionAllPre17,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 34000)
    )
    ),
    If(_numberOfBatches > 18,
    ClearCollect(_masterCollectionAllPre18,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 36000)
    )
    ),
    If(_numberOfBatches > 19,
    ClearCollect(_masterCollectionAllPre19,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 38000)
    )
    ),
    If(_numberOfBatches > 20,
    ClearCollect(_masterCollectionAllPre20,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 40000)
    )
    ),
    If(_numberOfBatches > 21,
    ClearCollect(_masterCollectionAllPre21,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 42000)
    )
    ),
    If(_numberOfBatches > 22,
    ClearCollect(_masterCollectionAllPre22,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 44000)
    )
    ),
    If(_numberOfBatches > 23,
    ClearCollect(_masterCollectionAllPre23,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 46000)
    )
    ),
    If(_numberOfBatches > 24,
    ClearCollect(_masterCollectionAllPre24,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 48000)
    )
    ),
    If(_numberOfBatches > 25,
    ClearCollect(_masterCollectionAllPre25,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 50000)
    )
    ),
    If(_numberOfBatches > 26,
    ClearCollect(_masterCollectionAllPre26,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 52000)
    )
    ),
    If(_numberOfBatches > 27,
    ClearCollect(_masterCollectionAllPre27,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 54000)
    )
    ),
    If(_numberOfBatches > 28,
    ClearCollect(_masterCollectionAllPre28,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 56000)
    )
    ),
    If(_numberOfBatches > 29,
    ClearCollect(_masterCollectionAllPre29,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 58000)
    )
    ),
    If(_numberOfBatches > 30,
    ClearCollect(_masterCollectionAllPre30,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 60000)
    )
    ),
    If(_numberOfBatches > 31,
    ClearCollect(_masterCollectionAllPre31,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 62000)
    )
    ),
    If(_numberOfBatches > 32,
    ClearCollect(_masterCollectionAllPre32,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 64000)
    )
    ),
    If(_numberOfBatches > 33,
    ClearCollect(_masterCollectionAllPre33,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 66000)
    )
    ),
    If(_numberOfBatches > 34,
    ClearCollect(_masterCollectionAllPre34,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 68000)
    )
    ),
    If(_numberOfBatches > 35,
    ClearCollect(_masterCollectionAllPre35,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 70000)
    )
    ),
    If(_numberOfBatches > 36,
    ClearCollect(_masterCollectionAllPre36,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 72000)
    )
    ),
    If(_numberOfBatches > 37,
    ClearCollect(_masterCollectionAllPre37,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 74000)
    )
    ),
    If(_numberOfBatches > 38,
    ClearCollect(_masterCollectionAllPre38,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 76000)
    )
    ),
    If(_numberOfBatches > 39,
    ClearCollect(_masterCollectionAllPre39,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 78000)
    )
    ),
    If(_numberOfBatches > 40,
    ClearCollect(_masterCollectionAllPre40,
        Filter(SortByColumns('[dbo].[970_item_format_item_mast]', "RowNumber", Ascending), RowNumber > 80000)
    )
    )
);
// End concurrent function


ClearCollect(_masterCollectionAll,
    _masterCollectionAllPre0,
    _masterCollectionAllPre1,
    _masterCollectionAllPre2,
    _masterCollectionAllPre3,
    _masterCollectionAllPre4,
    _masterCollectionAllPre5,
    _masterCollectionAllPre6,
    _masterCollectionAllPre7,
    _masterCollectionAllPre8,
    _masterCollectionAllPre9,
    _masterCollectionAllPre10,
    _masterCollectionAllPre11,
    _masterCollectionAllPre12,
    _masterCollectionAllPre13,
    _masterCollectionAllPre14,
    _masterCollectionAllPre15,
    _masterCollectionAllPre16,
    _masterCollectionAllPre17,
    _masterCollectionAllPre18,
    _masterCollectionAllPre19,
    _masterCollectionAllPre20,
    _masterCollectionAllPre21,
    _masterCollectionAllPre22,
    _masterCollectionAllPre23,
    _masterCollectionAllPre24,
    _masterCollectionAllPre25,
    _masterCollectionAllPre26,
    _masterCollectionAllPre27,
    _masterCollectionAllPre28,
    _masterCollectionAllPre29,
    _masterCollectionAllPre30,
    _masterCollectionAllPre31,
    _masterCollectionAllPre32,
    _masterCollectionAllPre33,
    _masterCollectionAllPre34,
    _masterCollectionAllPre35,
    _masterCollectionAllPre36,
    _masterCollectionAllPre37,
    _masterCollectionAllPre38,
    _masterCollectionAllPre39,
    _masterCollectionAllPre40
    );

Helpful resources

Announcements

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!     Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!     Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!     UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!     European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!   Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!   For more events, click the image below to visit the Microsoft Community Days website.    

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!  

Top Solution Authors
Top Kudoed Authors
Users online (4,152)