Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The SPLITLIST
function splits the specified list into sublists (or batches), each of which contains the specified number of records. It then returns the result as a new Record list value that consists of the batches.
SPLITLIST (list, number)
SPLITLIST (list, number, on-demand reading flag)
list
: Record list
The valid path of a data source of the Record list data type.
number
: Integer
The maximum number of records per batch.
on-demand reading flag
: Boolean
A Boolean value that specifies whether elements of sublists should be generated on demand.
Record list
The resulting list of records.
The list of batches that is returned contains the following elements:
Value: List
The list of records that belong to the current batch.
BatchNumber: Integer
The number of the current batch in the returned list.
When the on-demand reading flag is set to True, sublists are generated upon request which allows for a reduction in memory consumption but may cause performance degradation if elements aren't used sequentially.
In the following illustration, a Lines data source is created as a record list that has three records. This list is divided into batches, each of which contains up to two records.
The following illustration shows the designed format layout. In this format layout, bindings to the Lines data source are created to generate output in XML format. This output presents individual nodes for each batch and the records in it.
The following illustration shows the result when the designed format is run.
Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreDocumentation
FIRST ER function - Finance & Operations | Dynamics 365
Learn about how the FIRST Electronic reporting (ER) function is used, including syntax strings, arguments, return values, and examples.
COUNT ER function - Finance & Operations | Dynamics 365
Learn about how the COUNT Electronic reporting (ER) function is used, including syntax strings, arguments, return values, and examples.
List of ER functions in the list category - Finance & Operations | Dynamics 365
Learn about the list functions that are supported in Electronic reporting (ER), including a list of supported functions.