Hi Everyone,
I'm stuck in the issue of counting the number of ID expend very long time(16hr) to finish it.
There have several same ID in the data that over 5000 rows and I would like to found it out and count it.
First I used "Apply to each" to get each row's data, and used "Filter array" to match the same ID, then use "Select" and expression "length" to count the number of items and used "concat" to put them together, finally use "Append to string variable" to collect them.
concat(item()[0], ',', length(body('Filter_array_11')), ',', item()[3], ',', item()[4], ',', item()[5], ',', item()[6], ',', item()[7], ',', item()[8], ',', item()[9], ',', item()[10], ',', item()[11], ',', item()[12], ',', item()[13], ',', item()[14], ',', item()[15], ',', item()[16], ',', item()[17])
Below is my Flow snapshot:

It expends 16 hr to finish, is there has any quick way to approach??

Regards,
ilu989