Hi @Anonymous :
Do you want to display the number of remaining records that have not been added to the data source?
I’ve made a test for your reference:
Step1:Add a button control
On Select:
Set(
count1, /* a variable used to record the number of rows of the table after the operation is completed */
CountRows(Table1) + CountRows(VarVarVar) /*Table1 is my data source, VarVarVar is the collection*/
);
Select(Timer1);
ForAll(
VarVarVar,
Patch(
Table1,
Defaults(Table1),
{
cust_id: cust_id,
cust_name: cust_name,
saler_name: saler_name
}
)
)
Step2:Add a timer control.
AutoStart:
true
Duration:
10 /*loop in 0.01s*/
OnTimerEnd:
Set(
count2, /* a variable used to record the number of remaining records that have not been added to the data source */
count1 - CountRows(Table1)
)
Repeat:
true
Visible:
false
Step3:Add a label control.
Text:
count2
The label control will display the number of remaining records that have not been added to the data source.
In addition,since your data source is Excel, I suggest you pay attention to this following point(Main known limitations):
1\You can only edit the formatted table that in the Excel file. Format the Excel data as a table
2\If your Excel data includes a calculated column, you can't use it to build an app, and you can’t add that data to an existing app.
3\Sharing Excel tables
In OneDrive for Business, share the file itself.
In OneDrive, share the folder that contains the file, and specify file paths, not URLs, for any media.
4\The maximum size of an Excel file that is supported by the Excel Online (OneDrive) connector is 5 MB.
5\An Excel file may be locked in OneDrive for an update or delete up to 12 minutes(OneDrive) since the last use of the connector.
6\You should not have the Excel workbook open in OneDrive when you are trying to update it, or you will receive the error “The requested resource is locked.
Best Regards,
Bof